Beispiel #1
0
 /** Constructor. */
 public DefaultRouter(SipStack sipStack, String defaultRoute) {
   this.sipStack = (SipStackImpl) sipStack;
   if (defaultRoute != null) {
     try {
       this.defaultRoute =
           (Hop)
               this.sipStack
                   .getAddressResolver()
                   .resolveAddress((Hop) (new HopImpl(defaultRoute)));
     } catch (IllegalArgumentException ex) {
       // The outbound proxy is optional. If specified it should be host:port/transport.
       ((SIPTransactionStack) sipStack)
           .getStackLogger()
           .logError("Invalid default route specification - need host:port/transport");
       throw ex;
     }
   }
 }