Package javax.sip.header

Examples of javax.sip.header.CallIdHeader


    while (it.hasNext()) {
      // Get the next dialog
      SIPDialog itDialog = (SIPDialog) it.next();

      // Get the call id associated with this dialog
      CallIdHeader callIdHeader = (itDialog != null ? itDialog
          .getCallId() : null);
      String callID = (callIdHeader != null ? callIdHeader.getCallId()
          : null);

      // Check if the application knows about this call id
      if (itDialog != null && callID != null
          && !activeCallIDs.contains(callID)) {
View Full Code Here


                // Create ContentTypeHeader
                ContentTypeHeader contentTypeHeader = headerFactory
                        .createContentTypeHeader("application", "sdp");

                // Create a new CallId header
                CallIdHeader callIdHeader = sipProvider.getNewCallId();

                // Create a new Cseq header
                CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(1L,
                        Request.INVITE);
View Full Code Here

    while (it.hasNext()) {
      // Get the next dialog
      SIPDialog itDialog = (SIPDialog) it.next();

      // Get the call id associated with this dialog
      CallIdHeader callIdHeader = (itDialog != null ? itDialog
          .getCallId() : null);
      String callID = (callIdHeader != null ? callIdHeader.getCallId()
          : null);

      // Check if the application knows about this call id
      if (itDialog != null && callID != null
          && !activeCallIDs.contains(callID)) {
View Full Code Here

                // Create ContentTypeHeader
                ContentTypeHeader contentTypeHeader = headerFactory
                        .createContentTypeHeader("application", "sdp");

                // Create a new CallId header
                CallIdHeader callIdHeader = sipProvider.getNewCallId();

                // Create a new Cseq header
                CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(1L,
                        Request.INVITE);
View Full Code Here

            // add via headers
            viaHeaders.add(viaHeader);

            // Create a new CallId header
            CallIdHeader callIdHeader = mySipProvider.getNewCallId();
            // JvB: Make sure that the implementation matches the messagefactory
            callIdHeader = headerFactory.createCallIdHeader( callIdHeader.getCallId() );


            // Create a new Cseq header
            CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(1L,
                    Request.INVITE);
View Full Code Here

        while (it.hasNext()) {
            // Get the next dialog
            SIPDialog itDialog = (SIPDialog) it.next();

            // Get the call id associated with this dialog
      CallIdHeader callIdHeader = (itDialog != null ? itDialog
          .getCallId() : null);
      String callID = (callIdHeader != null ? callIdHeader.getCallId()
          : null);

            // Check if the application knows about this call id
      if (itDialog != null && callID != null
          && !activeCallIDs.contains(callID)) {
View Full Code Here

      ViaHeader viaHeader = headerFactory.createViaHeader("127.0.0.1",
          sipProvider.getListeningPoint(transport).getPort(), transport, null);
      viaHeaders.add(viaHeader);

      // Create a new CallId header
      CallIdHeader callIdHeader = callId;
      //callIdHeader.setCallId("1");
      // Create a new Cseq header
      CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(countId, Request.INVITE);

      // Create a new MaxForwardsHeader
View Full Code Here

      //send new invite
      FromHeader fromHeader = (FromHeader) requestEvent.getRequest().getHeader(FromHeader.NAME);
      String fromHeaderName = fromHeader.getAddress().getDisplayName();
     
      //Get callID
      CallIdHeader callID = (CallIdHeader) requestEvent.getRequest().getHeader(CallIdHeader.NAME);
//      invitesDone.add(callID);
//      invitesSent++;
     
      //Save Event for responding later
     
View Full Code Here

      ViaHeader viaHeader = headerFactory.createViaHeader("127.0.0.1",
          sipProvider.getListeningPoint(transport).getPort(), transport, null);
      viaHeaders.add(viaHeader);

      // Create a new CallId header
      CallIdHeader callIdHeader = sipProvider.getNewCallId();
      //callIdHeader.setCallId("1");
      // Create a new Cseq header
      CSeqHeader cSeqHeader = headerFactory.createCSeqHeader(id, Request.INVITE);

      // Create a new MaxForwardsHeader
View Full Code Here

  public void processResponse(ResponseEvent responseEvent) {
    if(responseEvent.getResponse().getStatusCode() == 180){
      //System.out.println("Ringing bekommen");
      //System.out.println("RINGING bekommen");
      CallIdHeader callID = (CallIdHeader) responseEvent.getResponse().getHeader(CallIdHeader.NAME);
    }
    CSeqHeader cseq2 = (CSeqHeader) responseEvent.getResponse().getHeader(CSeqHeader.NAME);

    if(responseEvent.getResponse().getStatusCode() == 200 && cseq2.getMethod().equals("INVITE")){
      //System.out.println("confirmed OK bekommen");
      //System.out.println("confirmed OK bekommen");
      CallIdHeader callID = (CallIdHeader) responseEvent.getResponse().getHeader(CallIdHeader.NAME);
      CSeqHeader cseq = (CSeqHeader) responseEvent.getResponse().getHeader(CSeqHeader.NAME);
     
      try{
        Dialog dialog = responseEvent.getClientTransaction().getDialog();
        Request ack = dialog.createAck(cseq.getSeqNumber());
View Full Code Here

TOP

Related Classes of javax.sip.header.CallIdHeader

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.