Package org.zoolu.sip.header

Examples of org.zoolu.sip.header.MaxForwardsHeader


  
      int err_code=0;
     
      // Max-Forwads
      if (err_code==0)
      {  MaxForwardsHeader mfh=msg.getMaxForwardsHeader();
         if (mfh!=null && mfh.getNumber()==0) err_code=483;
      }
      // Loops
      // Insert also a temporary Loop-Tag header field in order to correctly compose
      // the branch field when forwarding the message.
      // This behaviour has been choosen since the message validation is done
View Full Code Here


      }
      via.setBranch(branch);
      msg.addViaHeader(via);

      // decrement Max-Forwards
      MaxForwardsHeader maxfwd=msg.getMaxForwardsHeader();
      if (maxfwd!=null) maxfwd.decrement();
      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();
View Full Code Here

TOP

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

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.