Package javax.sip

Examples of javax.sip.DialogState


          if (currentTime - itDialog.auditTag >= leakedDialogTimer) {
            // Leaked dialog found
            leakedDialogs++;

            // Generate report
            DialogState dialogState = itDialog.getState();
            String dialogReport = "dialog id: "
                + itDialog.getDialogId()
                + ", dialog state: "
                + (dialogState != null ? dialogState.toString()
                    : "null");
            auditReport += "    " + dialogReport + "\n";

            // Kill it
            itDialog.setState(SIPDialog.TERMINATED_STATE);
View Full Code Here


            // See if the dialog needs to be inserted into the dialog table
            // or if the state of the dialog needs to be changed.
            if (dialog != null && statusCode != 100) {
                dialog.setResponseTags(sipResponse);
                DialogState oldState = dialog.getState();
                dialog.setLastResponse(this, (SIPResponse) response);
                if (oldState == null && dialog.getState() == DialogState.TERMINATED) {
                    DialogTerminatedEvent event = new DialogTerminatedEvent(dialog
                            .getSipProvider(), dialog);
View Full Code Here

      forgedResponse = messageFactory.createResponse(receivedResponse.getStatusCode(), origServerTransaction.getRequest());
    } catch (ParseException e) {
      throw new SipException("Failed to forge message", e);
    }
   
    final DialogState dialogState = incomingDialog.getState();
    if ((dialogState == null || dialogState == DialogState.EARLY) && localTag != null && incomingDialog.isServer()) {
      // no tag set in the response, since the dialog creating transaction didn't had it
      try {
        ((ToHeader)forgedResponse.getHeader(ToHeader.NAME)).setTag(localTag);
      } catch (ParseException e) {
View Full Code Here

                    if (currentTime - itDialog.auditTag >= leakedDialogTimer) {
                        // Leaked dialog found
                        leakedDialogs++;

                        // Generate report
                        DialogState dialogState = itDialog.getState();
            String dialogReport = "dialog id: "
                + itDialog.getDialogId()
                                + ", dialog state: "
                + (dialogState != null ? dialogState.toString()
                    : "null");
                        auditReport += "    " + dialogReport + "\n";

                        // Kill it
                        itDialog.setState(SIPDialog.TERMINATED_STATE);
View Full Code Here

      forgedResponse = messageFactory.createResponse(receivedResponse.getStatusCode(), origServerTransaction.getRequest());
    } catch (ParseException e) {
      throw new SipException("Failed to forge message", e);
    }
   
    final DialogState dialogState = incomingDialog.getState();
    if ((dialogState == null || dialogState == DialogState.EARLY) && localTag != null && incomingDialog.isServer()) {
      // no tag set in the response, since the dialog creating transaction didn't had it
      try {
        ((ToHeader)forgedResponse.getHeader(ToHeader.NAME)).setTag(localTag);
      } catch (ParseException e) {
View Full Code Here

                    if (currentTime - itDialog.auditTag >= leakedDialogTimer) {
                        // Leaked dialog found
                        leakedDialogs++;

                        // Generate report
                        DialogState dialogState = itDialog.getState();
            String dialogReport = "dialog id: "
                + itDialog.getDialogId()
                                + ", dialog state: "
                + (dialogState != null ? dialogState.toString()
                    : "null");
                        auditReport += "    " + dialogReport + "\n";

                        // Kill it
                        itDialog.setState(SIPDialog.TERMINATED_STATE);
View Full Code Here

TOP

Related Classes of javax.sip.DialogState

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.