Examples of RouteHeader


Examples of javax.sip.header.RouteHeader

            .createAddress("<sip:" + PEER_ADDRESS + ":" + PEER_PORT
                + ">");
        // SipUri sipUri = (SipUri) address.getURI();
        // sipUri.setPort(PEER_PORT);

        RouteHeader routeHeader = protocolObjects.headerFactory
            .createRouteHeader(address);
        ((SipURI)address.getURI()).setLrParam();
        request.addHeader(routeHeader);
        extensionHeader = protocolObjects.headerFactory.createHeader(
            "My-Other-Header", "my new header value ");
View Full Code Here

Examples of org.zoolu.sip.header.RouteHeader

         // look if the msg sent by the previous UA is compliant with the RFC2543 Strict Route rule..
         if (isResponsibleFor(target.getHost(),target.getPort()) && msg.hasRouteHeader())
         { 
            //SipURL route_url=msg.getRouteHeader().getNameAddress().getAddress();
            SipURL route_url=(new RouteHeader(msg.getRoutes().getBottom())).getNameAddress().getAddress();
            if (!route_url.hasLr())
            {  printLog("probably the message was compliant to RFC2543 Strict Route rule: message is updated to RFC3261",LogLevel.MEDIUM);

               // the message has been sent to this server according with RFC2543 Strict Route
               // the proxy MUST replace the Request-URI in the request with the last
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.