Changeset 126:5c5787812787 in mediastreamer2
- Timestamp:
- Oct 29, 2008 10:04:44 PM (5 years ago)
- Branch:
- default
- Location:
- p2pproxy
- Files:
-
- 4 edited
-
src/org/linphone/p2pproxy/core/sipproxy/SipProxyRegistrar.java (modified) (1 diff)
-
src/org/linphone/p2pproxy/core/sipproxy/superpeers/SuperPeerProxy.java (modified) (2 diffs)
-
test-src/org/linphone/p2pproxy/test/utils/SipClient.java (modified) (1 diff)
-
test-src/org/linphone/p2pproxy/test/utils/UserInstance.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
p2pproxy/src/org/linphone/p2pproxy/core/sipproxy/SipProxyRegistrar.java
r124 r126 94 94 public final String From; 95 95 public Registration(String aFrom) {From = aFrom;} 96 public String toString() { 97 return "reg date ["+RegistrationDate+"] exp ["+Expiration+"] contact ["+Contact+"] from ["+From+"]"; 98 } 96 99 } 97 100 -
p2pproxy/src/org/linphone/p2pproxy/core/sipproxy/superpeers/SuperPeerProxy.java
r124 r126 74 74 try { 75 75 List<P2pUserRegistrationAdvertisement> lAdvList = (List<P2pUserRegistrationAdvertisement>) mJxtaNetworkManager.getAdvertisementList(null, P2pUserRegistrationAdvertisement.USER_NAME_TAG,lTo, true); 76 lNextHope = new SipURL(lAdvList.get(0).get UserName());76 lNextHope = new SipURL(lAdvList.get(0).getRegistrarAddress()); 77 77 } catch (Exception e) { 78 78 throw new P2pProxyUserNotFoundException("user ["+lTo+"] not found",e); 79 79 } 80 80 81 } else { 82 //nop 81 83 } 82 84 } … … 94 96 95 97 if (lMultipleRoute != null && lMultipleRoute.isEmpty()== false) { 96 lNextHope = ((RecordRouteHeader)lMultipleRoute.getTop()).getNameAddress().getAddress(); 98 RouteHeader lRouteHeader = new RouteHeader(lMultipleRoute.getTop()); 99 lNextHope = lRouteHeader.getNameAddress().getAddress(); 97 100 } else { 98 101 // last proxy, get route from request uri -
p2pproxy/test-src/org/linphone/p2pproxy/test/utils/SipClient.java
r108 r126 70 70 } 71 71 public boolean register(int expiration,String aTo,final int aReturnCode) throws InterruptedException { 72 final long TryingTimout = 1000;72 final long TryingTimout = 2000; 73 73 74 74 NameAddress lContact = new NameAddress(getContact(mProvider)); -
p2pproxy/test-src/org/linphone/p2pproxy/test/utils/UserInstance.java
r110 r126 52 52 lSocket.close(); 53 53 URI lUserNameUri = URI.create(userName); 54 final String[] lParam = {"-jxta" ,"userinstance-"+lUserNameUri.get UserInfo()54 final String[] lParam = {"-jxta" ,"userinstance-"+lUserNameUri.getSchemeSpecificPart() 55 55 ,"-edge-only" 56 56 ,"-seeding-rdv", "tcp://82.67.74.86:9701" … … 74 74 } 75 75 P2pProxyMain.createAccount(userName); 76 SipStack.log_path = "userinstance-"+lUserNameUri.get UserInfo()+"/logs";76 SipStack.log_path = "userinstance-"+lUserNameUri.getSchemeSpecificPart()+"/logs"; 77 77 File lFile = new File(SipStack.log_path); 78 78 if (lFile.exists() == false) lFile.mkdir();
Note: See TracChangeset
for help on using the changeset viewer.
