Package javax.sip.header

Examples of javax.sip.header.RouteHeader


            SipURI sipuri = protocolObjects.addressFactory.createSipURI(null, host);
            sipuri.setPort(peerPort);
            sipuri.setLrParam();

            RouteHeader routeHeader = protocolObjects.headerFactory
                    .createRouteHeader(protocolObjects.addressFactory.createAddress(sipuri));

            // Create ContentTypeHeader
            ContentTypeHeader contentTypeHeader = protocolObjects.headerFactory
                    .createContentTypeHeader("application", "sdp");
View Full Code Here


                            "127.0.0.1");
                    sipUri.setPort(5080);
                    sipUri.setLrParam();
                    Address address = protocolObjects.addressFactory.createAddress("client1",
                            sipUri);
                    RouteHeader rheader = protocolObjects.headerFactory
                            .createRouteHeader(address);

                    newRequest.addFirst(rheader);
                    ViaHeader viaHeader = protocolObjects.headerFactory.createViaHeader(host,
                            port, protocolObjects.transport, null);
View Full Code Here

      SipURI sipuri = protocolObjects.addressFactory.createSipURI(null,
          host);
      sipuri.setPort(peerPort);
      sipuri.setLrParam();

      RouteHeader routeHeader = protocolObjects.headerFactory
          .createRouteHeader(protocolObjects.addressFactory
              .createAddress(sipuri));

      // Create ContentTypeHeader
      ContentTypeHeader contentTypeHeader = protocolObjects.headerFactory
View Full Code Here

                            "127.0.0.1");
                    sipUri.setPort(5080);
                    sipUri.setLrParam();
                    Address address = protocolObjects.addressFactory.createAddress("client1",
                            sipUri);
                    RouteHeader rheader = protocolObjects.headerFactory
                            .createRouteHeader(address);

                    newRequest.setHeader(rheader);
                    ViaHeader viaHeader = protocolObjects.headerFactory.createViaHeader(host,
                            port, protocolObjects.transport, null);
View Full Code Here

                // JvB: To test forked SUBSCRIBEs, send it via the Forker
                // Note: BIG Gotcha: Need to do this before creating the
                // ClientTransaction!

                RouteHeader route = headerFactory.createRouteHeader(addressFactory
                        .createAddress("<sip:127.0.0.1:" + notifierPort + ";transport="
                                + transport + ";lr>"));
                request.addHeader(route);
                // JvB end added
View Full Code Here

          .createAddress("<sips:" + 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

            .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

                Address address = protocolObjects.addressFactory.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

            // Strip first route if it is the jiplet UIR adn lr parameter
            ListIterator routes = clonedRequest.getHeaders(RouteHeader.NAME);
            if (routes != null && routes.hasNext())
            {

                RouteHeader routeHeader = (RouteHeader) routes.next();
                Address routeAddress = routeHeader.getAddress();
                URI routeURI = routeAddress.getURI();

                if (routeURI.isSipURI() && ((SipURI) routeURI).hasLrParam())
                {
                    String host = ((SipURI) routeURI).getHost();
View Full Code Here

            ListIterator routes = msg.getHeaders(RouteHeader.NAME);
            if (routes != null)
            {
                if (routes.hasNext())
                {
                    RouteHeader routeHeader = (RouteHeader) routes.next();
                    Address routeAddress = routeHeader.getAddress();
                    SipURI routeSipURI = (SipURI) routeAddress.getURI();

                    String h = routeSipURI.getHost();
                    int port = routeSipURI.getPort();
View Full Code Here

TOP

Related Classes of javax.sip.header.RouteHeader

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.