Package javax.sip.message

Examples of javax.sip.message.Response.removeFirst()


                    // Client tx has already terminated but the UA is retransmitting
                    // just forward the response statelessly.
                    // Strip the topmost via header

                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // Send the retransmission statelessly
                    this.inviteServerTxProvider.sendResponse(newResponse);
                }
            } else {
                // Can be BYE due to Record-Route
View Full Code Here


                    ServerTransaction st = (ServerTransaction) ct
                            .getApplicationData();

                    // Strip the topmost via header
                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // The server tx goes to the terminated state.

                    st.sendResponse(newResponse);
                } else {
                    // Client tx has already terminated but the UA is
View Full Code Here

                    // retransmitting
                    // just forward the response statelessly.
                    // Strip the topmost via header

                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // Send the retransmission statelessly

                    this.inviteServerTxProvider.sendResponse(newResponse);

                }
View Full Code Here

                ServerTransaction st = (ServerTransaction) ct
                        .getApplicationData();

                // Strip the topmost via header
                Response newResponse = (Response) response.clone();
                newResponse.removeFirst(ViaHeader.NAME);
                // The server tx goes to the terminated state.
                if ( st.getState() != TransactionState.TERMINATED)
                 st.sendResponse(newResponse);

                TestHarness.assertNull(st.getDialog());
View Full Code Here

                // retransmitting
                // just forward the response statelessly.
                // Strip the topmost via header

                Response newResponse = (Response) response.clone();
                newResponse.removeFirst(ViaHeader.NAME);
                // Send the retransmission statelessly
                SipProvider sipProvider = (SipProvider) responseEvent
                        .getSource();
                sipProvider.sendResponse(newResponse);
            }
View Full Code Here

                if (ct != null) {
                    ServerTransaction st = (ServerTransaction) ct.getApplicationData();

                    // Strip the topmost via header
                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // The server tx goes to the terminated state.

                    st.sendResponse(newResponse);
                } else {
                    // Client tx has already terminated but the UA is
View Full Code Here

                    // retransmitting
                    // just forward the response statelessly.
                    // Strip the topmost via header

                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // Send the retransmission statelessly
                    this.inviteServerTxProvider.sendResponse(newResponse);
                }
            } else {
                // this is the OK for the cancel.
View Full Code Here

        ServerTransaction st = (ServerTransaction) ct
            .getApplicationData();

        // Strip the topmost via header
        Response newResponse = (Response) response.clone();
        newResponse.removeFirst(ViaHeader.NAME);
        // The server tx goes to the terminated state.
        if ( st.getState() != TransactionState.TERMINATED)
         st.sendResponse(newResponse);

        TestHarness.assertNull(st.getDialog());
View Full Code Here

        // retransmitting
        // just forward the response statelessly.
        // Strip the topmost via header

        Response newResponse = (Response) response.clone();
        newResponse.removeFirst(ViaHeader.NAME);
        // Send the retransmission statelessly
        SipProvider sipProvider = (SipProvider) responseEvent
            .getSource();
        sipProvider.sendResponse(newResponse);
      }
View Full Code Here

          ServerTransaction st = (ServerTransaction) ct
              .getApplicationData();

          // Strip the topmost via header
          Response newResponse = (Response) response.clone();
          newResponse.removeFirst(ViaHeader.NAME);
          // The server tx goes to the terminated state.
         
          st.sendResponse(newResponse);
        } else {
          // Client tx has already terminated but the UA is retransmitting
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.