Package org.zoolu.net

Examples of org.zoolu.net.SocketAddress


      if (keepalive_time>0)
      {  SipURL target_url=target.getAddress();
         String target_host=target_url.getHost();
         int targe_port=target_url.getPort();
         if (targe_port<0) targe_port=SipStack.default_port;
         new KeepAliveSip(sip_provider,new SocketAddress(target_host,targe_port),null,keepalive_time);
      }
   }
View Full Code Here


      SipURL targetUrl = target.getAddress();
      String targetHost = targetUrl.getHost();
      int targePort = targetUrl.getPort();
      if (targePort < 0) targePort = SipStack.default_port;
     
      SocketAddress socket = new SocketAddress(targetHost, targePort);
      keepAlive = new KeepAliveSip(sipProvider, socket, null, keepaliveTime);
    }
  }
View Full Code Here

        initSipProvider(host, sipPort);
    }
   
    private void initSipProvider(String host, int sipPort) {
        sipProvider = new SipProvider(host, sipPort);   
        sipProvider.setOutboundProxy(new SocketAddress(host));
        sipProvider.addSipProviderListener(new OptionMethodListener());     
    }
View Full Code Here

         par.goTo("prefix").skipN(6).goTo('=').skipChar();
            String prefix=par.getWord(delim);
            if (prefix.equals("*")) prefix=PrefixRoutingRule.DEFAULT_PREFIX;
            par.goTo("nexthop").skipN(7).goTo('=').skipChar();
            String nexthop=par.getWord(delim);
            aux.addElement(new PrefixRoutingRule(prefix,new SocketAddress(nexthop)));
            par.goTo('{');
         }
         phone_routing_rules=new RoutingRule[aux.size()];
         for (int i=0; i<aux.size(); i++) phone_routing_rules[i]=(RoutingRule)aux.elementAt(i);
         return;
      }

      if (attribute.equals("domain_routing_rules"))
      {  char[] delim={' ',',','}'};
         Vector aux=new Vector();
         par.goTo('{');
         while (par.hasMore())
         {  par.goTo("domain").skipN(6).goTo('=').skipChar();
            String prefix=par.getWord(delim);
            par.goTo("nexthop").skipN(7).goTo('=').skipChar();
            String nexthop=par.getWord(delim);
            aux.addElement(new DomainRoutingRule(prefix,new SocketAddress(nexthop)));
            par.goTo('{');
         }
         domain_routing_rules=new RoutingRule[aux.size()];
         for (int i=0; i<aux.size(); i++) domain_routing_rules[i]=(RoutingRule)aux.elementAt(i);
         return;
View Full Code Here

        String realm, String proxy) {
      log.debug( "SIPUser login" );
        this.proxy = proxy;
    this.optOutboundProxy = obproxy;

    sipProvider.setOutboundProxy(new SocketAddress(optOutboundProxy));       
    setupUserProfile(username, password, realm, phone);
        initializeUserAgent();                             
    }
View Full Code Here

      SipURL targetUrl = target.getAddress();
      String targetHost = targetUrl.getHost();
      int targePort = targetUrl.getPort();
      if (targePort < 0) targePort = SipStack.default_port;
     
      SocketAddress socket = new SocketAddress(targetHost, targePort);
      keepAlive = new KeepAliveSip(sipProvider, socket, null, keepaliveTime);
    }
  }
View Full Code Here

         SipStack.init(file);
         if (opt_debug_level>=0) SipStack.debug_level=opt_debug_level;
         if (opt_log_path!=null) SipStack.log_path=opt_log_path;
         SipProvider sip_provider;
         if (file!=null) sip_provider=new SipProvider(file); else sip_provider=new SipProvider(opt_via_addr,opt_host_port);
         if (opt_outbound_proxy!=null) sip_provider.setOutboundProxy(new SocketAddress(opt_outbound_proxy));
         UserAgentProfile user_profile=new UserAgentProfile(file);
        
         if (opt_regist) user_profile.do_register=true;
         if (opt_unregist) user_profile.do_unregister=true;
         if (opt_unregist_all) user_profile.do_unregister_all=true;
View Full Code Here

         SipStack.init(file);
         if (opt_debug_level>=0) SipStack.debug_level=opt_debug_level;
         if (opt_log_path!=null) SipStack.log_path=opt_log_path;
         SipProvider sip_provider;
         if (file!=null) sip_provider=new SipProvider(file); else sip_provider=new SipProvider(opt_via_addr,opt_host_port);
         if (opt_outbound_proxy!=null) sip_provider.setOutboundProxy(new SocketAddress(opt_outbound_proxy));
         UserAgentProfile user_profile=new UserAgentProfile(file);        

         if (opt_regist) user_profile.do_register=true;
         if (opt_unregist) user_profile.do_unregister=true;
         if (opt_unregist_all) user_profile.do_unregister_all=true;
View Full Code Here

TOP

Related Classes of org.zoolu.net.SocketAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.