Changeset 126:5c5787812787 in mediastreamer2


Ignore:
Timestamp:
Oct 29, 2008 10:04:44 PM (5 years ago)
Author:
jehan <jehan@…>
Branch:
default
Message:

fix inter proxy communication

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@129 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

Location:
p2pproxy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • p2pproxy/src/org/linphone/p2pproxy/core/sipproxy/SipProxyRegistrar.java

    r124 r126  
    9494      public final String From; 
    9595      public Registration(String aFrom) {From = aFrom;} 
     96      public String toString() { 
     97          return "reg date ["+RegistrationDate+"] exp ["+Expiration+"] contact ["+Contact+"] from ["+From+"]"; 
     98      } 
    9699   } 
    97100    
  • p2pproxy/src/org/linphone/p2pproxy/core/sipproxy/superpeers/SuperPeerProxy.java

    r124 r126  
    7474                                           try { 
    7575                                                   List<P2pUserRegistrationAdvertisement> lAdvList = (List<P2pUserRegistrationAdvertisement>) mJxtaNetworkManager.getAdvertisementList(null, P2pUserRegistrationAdvertisement.USER_NAME_TAG,lTo, true); 
    76                                                    lNextHope = new SipURL(lAdvList.get(0).getUserName()); 
     76                                                   lNextHope = new SipURL(lAdvList.get(0).getRegistrarAddress()); 
    7777                                           } catch (Exception e) { 
    7878                                                   throw new P2pProxyUserNotFoundException("user ["+lTo+"] not found",e); 
    7979                                           }  
    8080                                            
     81                                   } else { 
     82                                           //nop 
    8183                                   } 
    8284                           } 
     
    9496                    
    9597                   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(); 
    97100                   } else { 
    98101                           // last proxy, get route from request uri 
  • p2pproxy/test-src/org/linphone/p2pproxy/test/utils/SipClient.java

    r108 r126  
    7070   } 
    7171   public boolean register(int expiration,String aTo,final int aReturnCode) throws InterruptedException { 
    72             final long TryingTimout = 1000; 
     72            final long TryingTimout = 2000; 
    7373             
    7474            NameAddress lContact = new NameAddress(getContact(mProvider)); 
  • p2pproxy/test-src/org/linphone/p2pproxy/test/utils/UserInstance.java

    r110 r126  
    5252        lSocket.close(); 
    5353        URI lUserNameUri = URI.create(userName); 
    54         final String[] lParam = {"-jxta" ,"userinstance-"+lUserNameUri.getUserInfo() 
     54        final String[] lParam = {"-jxta" ,"userinstance-"+lUserNameUri.getSchemeSpecificPart() 
    5555                                                        ,"-edge-only" 
    5656                                                        ,"-seeding-rdv", "tcp://82.67.74.86:9701" 
     
    7474        } 
    7575        P2pProxyMain.createAccount(userName); 
    76         SipStack.log_path = "userinstance-"+lUserNameUri.getUserInfo()+"/logs"; 
     76        SipStack.log_path = "userinstance-"+lUserNameUri.getSchemeSpecificPart()+"/logs"; 
    7777        File lFile = new File(SipStack.log_path); 
    7878    if (lFile.exists() == false) lFile.mkdir(); 
Note: See TracChangeset for help on using the changeset viewer.