Examples of createRequest()


Examples of javax.sip.Dialog.createRequest()

        //System.out.println("Ack sent");
        //System.out.println("ACK sent");
        dialog.sendAck(ack);
        //A sends a BYE
        Request byeRequest = dialog.createRequest(Request.BYE);
        dialog.sendRequest(sipProvider.getNewClientTransaction(byeRequest));
        //System.out.println("BYE sent");
        //System.out.println("Bye sent");
       
      }catch (SipException e) {
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

          } else {
           
            // Kill the first dialog by sending a bye.
            SipProvider sipProvider = (SipProvider) responseReceivedEvent
                .getSource();
            Request byeRequest = dialog.createRequest(Request.BYE);
            ClientTransaction ct = sipProvider
                .getNewClientTransaction(byeRequest);
            dialog.sendRequest(ct);         
          }
         
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

        // Send a Re INVITE but this time force it
        // to use UDP as the transport. Else, it will
        // Use whatever transport was used to create
        // the dialog.
        if (reInviteCount == 0) {
          Request inviteRequest = dialog
              .createRequest(Request.INVITE);         
          Thread.sleep(100);
          ClientTransaction ct = provider
              .getNewClientTransaction(inviteRequest);
          dialog.sendRequest(ct);
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

        // can be used to get it instead
        // Dialog dialog = serverTransaction.getDialog();
        Dialog dialog = requestEvent.getDialog();

        SipProvider provider = (SipProvider) requestEvent.getSource();
        Request byeRequest = dialog.createRequest(Request.BYE);
        ClientTransaction ct = provider.getNewClientTransaction(byeRequest);
        dialog.sendRequest(ct);
      } catch (Exception ex) {
        ex.printStackTrace();
        TestHarness.fail(ex.getMessage());
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

    try {
      logger.info("Got an ACK! sending bye : " + tid);
      if (tid != null) {
        Dialog dialog = tid.getDialog();
        TlsTest.assertSame("dialog id mismatch", dialog,this.dialog);
        Request bye = dialog.createRequest(Request.BYE);
        MaxForwardsHeader mf = protocolObjects.headerFactory
            .createMaxForwardsHeader(10);
        bye.addHeader(mf);
        ClientTransaction ct = provider.getNewClientTransaction(bye);
        dialog.sendRequest(ct);
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

                    logger.info("Sending ACK");
                    dialog.sendAck(ackRequest);

                    Thread.sleep(100);
                 
                    Request inviteRequest = dialog.createRequest(Request.INVITE);
                    ((SipURI) inviteRequest.getRequestURI()).removeParameter("transport");
                    ((ViaHeader) inviteRequest.getHeader(ViaHeader.NAME)).setTransport("udp");
                    inviteRequest.addHeader(contactHeader);
                    MaxForwardsHeader mf = protocolObjects.headerFactory
                            .createMaxForwardsHeader(10);
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

            peerDialog.sendAck(clonedRequest);
        }
        else
        {

            Request dialogRequest = peerDialog.createRequest(clonedRequest
                    .getMethod());
            Object content = clonedRequest.getContent();
            if (content != null)
            {
                ContentTypeHeader contentTypeHeader = (ContentTypeHeader) clonedRequest
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

                        && peerDialog.getState().equals(DialogState.CONFIRMED)
                        && clientsTransactionList != null
                        && clientsTransactionList.size() > 1)
                {
                    Dialog dialog = clientTransaction.getDialog();
                    Request byeRequest = dialog.createRequest(Request.BYE);

                    ClientTransaction ct = responseProvider
                            .getNewClientTransaction(byeRequest);
                    dialog.sendRequest(ct);
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

        //System.out.println("Ack sent");
        //System.out.println("ACK sent");
        dialog.sendAck(ack);
        //A sends a BYE
        Request byeRequest = dialog.createRequest(Request.BYE);
        dialog.sendRequest(sipProvider.getNewClientTransaction(byeRequest));
        //System.out.println("BYE sent");
        //System.out.println("Bye sent");
       
      }catch (SipException e) {
View Full Code Here

Examples of javax.sip.Dialog.createRequest()

                        sipProvider.sendRequest(ackRequest);
                        // Kill the second dialog by sending a bye.
                        SipProvider sipProvider = (SipProvider) responseReceivedEvent
                                .getSource();

                        Request byeRequest = dialog.createRequest(Request.BYE);
                        ClientTransaction ct = sipProvider
                                .getNewClientTransaction(byeRequest);
                        dialog.sendRequest(ct);
                    }
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.