Package org.zoolu.sip.header

Examples of org.zoolu.sip.header.RequestLine


      skipWSP();
      int begin=getPos();
      int end=indexOfEOH();
      String request_uri=getString(end-begin);
      goToNextLine();
      return new RequestLine(method,(new SipParser(request_uri)).getSipURL());
   }
View Full Code Here


      printLog("message will be forwarded to all user's contacts",LogLevel.MEDIUM);
      for (int i=0; i<targets.size(); i++)
      {  SipURL url=new SipURL((String)(targets.elementAt(i)));
         Message request=new Message(msg);
         request.removeRequestLine();
         request.setRequestLine(new RequestLine(msg.getRequestLine().getMethod(),url));

         updateProxingRequest(request);        

         TransactionClient tc;
         if (msg.isInvite()) tc=new InviteTransactionClient(sip_provider_client,request,this);
View Full Code Here

      printLog("message will be forwarded to all user's contacts",LogLevel.MEDIUM);
      for (int i=0; i<targets.size(); i++)
      {  SipURL url=new SipURL((String)(targets.elementAt(i)));
         Message request=new Message(msg);
         request.removeRequestLine();
         request.setRequestLine(new RequestLine(msg.getRequestLine().getMethod(),url));
        
         updateProxingRequest(request);
         sip_provider.sendMessage(request);
      }
   }
View Full Code Here

      else maxfwd=new MaxForwardsHeader(SipStack.max_forwards);
      msg.setMaxForwardsHeader(maxfwd);

      // domain name routing
      if (server_profile.domain_routing_rules!=null && server_profile.domain_routing_rules.length>0)
      {  RequestLine rl=msg.getRequestLine();
         SipURL request_uri=rl.getAddress();
         for (int i=0; i<server_profile.domain_routing_rules.length; i++)
         {  RoutingRule rule=(RoutingRule)server_profile.domain_routing_rules[i];
            SipURL nexthop=rule.getNexthop(request_uri);
            if (nexthop!=null)
            {  printLog("domain-based routing: "+rule.toString()+": YES",LogLevel.MEDIUM);
               printLog("target="+nexthop.toString(),LogLevel.MEDIUM);
               rl=new RequestLine(rl.getMethod(),nexthop);
               msg.setRequestLine(rl);
               break;
            }
            else printLog("prefix-based routing: "+rule.toString()+": NO",LogLevel.MEDIUM);
         }
View Full Code Here

         WwwAuthenticateHeader wah;
         if (code==401) wah=msg.getWwwAuthenticateHeader();
         else wah=msg.getProxyAuthenticateHeader();
         String qop_options=wah.getQopOptionsParam();
         qop=(qop_options!=null)? "auth" : null;
         RequestLine rl=req.getRequestLine();
         DigestAuthentication digest=new DigestAuthentication(rl.getMethod(),rl.getAddress().toString(),wah,qop,null,username,passwd);
         AuthorizationHeader ah;
         if (code==401) ah=digest.getAuthorizationHeader();
         else ah=digest.getProxyAuthorizationHeader();
         req.setAuthorizationHeader(ah);
View Full Code Here

TOP

Related Classes of org.zoolu.sip.header.RequestLine

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.