Changeset 6086
- Timestamp:
- Oct 4, 2019 6:59:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/swig/java/sample2.java
r5738 r6086 46 46 47 47 @Override 48 public void notifyRegState( pjsip_status_code code, String reason, intexpiration) {}48 public void notifyRegState(int code, String reason, long expiration) {} 49 49 50 50 @Override … … 87 87 vidWH.getHandle().setWindow(sample2.hwnd); 88 88 try { 89 currentCall.vidWin.setWindow(vidWH); 89 currentCall.vidWin.setWindow(vidWH); 90 90 } catch (Exception e) { 91 91 System.out.println(e); 92 } 92 } 93 93 } 94 } 94 } 95 95 } 96 96 97 97 @Override 98 98 public void notifyBuddyState(MyBuddy buddy) {} 99 100 @Override 101 public void notifyChangeNetwork() {} 99 102 } 100 103 … … 117 120 accCfg = new AccountConfig(); 118 121 accCfg.setIdUri("sip:localhost"); 122 account = app.addAcc(accCfg); 123 124 accCfg.setIdUri("sip:test1@pjsip.org"); 125 AccountSipConfig sipCfg = accCfg.getSipConfig(); 126 AuthCredInfoVector ciVec = sipCfg.getAuthCreds(); 127 ciVec.add(new AuthCredInfo("Digest", 128 "*", 129 "test1", 130 0, 131 "test1")); 132 133 StringVector proxy = sipCfg.getProxies(); 134 proxy.add("sip:sip.pjsip.org;transport=tcp"); 135 136 AccountRegConfig regCfg = accCfg.getRegConfig(); 137 regCfg.setRegistrarUri("sip:pjsip.org"); 138 119 139 accCfg.getVideoConfig().setAutoTransmitOutgoing(true); 120 140 accCfg.getVideoConfig().setAutoShowIncoming(true); … … 136 156 observer.check_call_deletion(); 137 157 try { 138 Thread. currentThread().sleep(50);158 Thread.sleep(50); 139 159 } catch (InterruptedException ie) { 140 160 break;
Note: See TracChangeset
for help on using the changeset viewer.