Examples of DialogState


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

Examples of javax.sip.DialogState

            // 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

Examples of javax.sip.DialogState

      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

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

Examples of javax.sip.DialogState

      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

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

Examples of net.solosky.maplefetion.client.dialog.DialogState

     */
    public void prompt()
    {
      try {
      if(this.activeChatDialog!=null){
        DialogState state = this.activeChatDialog.getState();
        if(state==DialogState.CREATED|| state==DialogState.OPENNING|| state==DialogState.OPENED){
          writer.append(this.client.getFetionUser().getDisplayName()+"@maplefetion^["+this.activeChatDialog.getMainBuddy().getDisplayName()+"]>>");
        }else{
          writer.append(this.client.getFetionUser().getDisplayName()+"@maplefetion>>");
        }
View Full Code Here

Examples of net.sourceforge.peers.sip.transactionuser.DialogState

            }
            ClientTransaction clientTransaction =
                transactionManager.getClientTransaction(originatingRequest);
            if (clientTransaction != null) {
                synchronized (clientTransaction) {
                    DialogState dialogState = dialog.getState();
                    if (dialog.EARLY.equals(dialogState)) {
                        initialRequestManager.createCancel(inviteWithAuth,
                                midDialogRequestManager, profileUri);
                    } else if (dialog.CONFIRMED.equals(dialogState)) {
                        // clientTransaction not yet removed
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.