Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * This source code has been contributed to the public domain by Mobicents
   *
   * This software is provided by NIST as a service and is expressly
   * provided "AS IS."  NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
   * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
   * AND DATA ACCURACY.  NIST does not warrant or make any representations
   * regarding the use of the software or the results thereof, including but
  * not limited to the correctness, accuracy, reliability or usefulness of
  * the software.
  *
  * Permission to use this software is contingent upon your acceptance
  * of the terms of this agreement.
  */
 package gov.nist.javax.sip.stack;
 
 
 
An event that indicates that a dialog has encountered an error.

Author(s):
jean deruelle
Since:
2.0
 
 public class SIPDialogErrorEvent extends EventObject {


    
This event ID indicates that the transaction has timed out.
 
     public static final int DIALOG_ACK_NOT_RECEIVED_TIMEOUT = 1;

    
This event ID indicates that there was an error sending a message using the underlying transport.
 
     public static final int DIALOG_ACK_NOT_SENT_TIMEOUT = 2;
    
    
This event ID indicates a timeout occured waiting to send re-INVITE ( for B2BUA)
 
     public static final int DIALOG_REINVITE_TIMEOUT = 3;
     
     /*
      * Dialog in early state for too long.
      */
     public static final int EARLY_STATE_TIMEOUT = 4;
     
     /*
      * This event Id indicates that some internal error happened and the ACK semaphore could not be acquired.
      */
     public static final int DIALOG_ERROR_INTERNAL_COULD_NOT_TAKE_ACK_SEM = 5;
     
 
     // ID of this error event
     private int errorID;
 
 	private SIPClientTransaction clientTransaction;
    
    
    
Creates a dialog error event.

Parameters:
sourceDialog Dialog which is raising the error.
dialogErrorID ID of the error that has ocurred.
 
         SIPDialog sourceDialog,
         int dialogErrorID) {
 
         super(sourceDialog);
          = dialogErrorID;
 
     }
     
     public SIPDialogErrorEvent (SIPDialog sourceDialogDialogTimeoutEvent.Reason reason) {
     	super(sourceDialog);
     	if ( reason == ..) {
     	} else if ( reason == .. ) {
     	} else if ( reason == ..) {
     		this. = ;
     	} else if (reason == ..) {
     	} else if ( reason == ..) {
     	    this. = ;
     	}
     }
 
     public SIPDialogErrorEvent (SIPDialog sourceDialogSIPClientTransaction clientTransactionDialogTimeoutEvent.Reason reason) {
     	this(sourceDialog,reason);
     	this. = clientTransaction;
     }
    
Returns the ID of the error.

Returns:
Error ID.
    public int getErrorID() {
        return ;
    }
    
    
    	return this.;
    }
	public void setClientTransaction(SIPClientTransaction clientTransaction) {
		this. = clientTransaction;
	}
New to GrepCode? Check out our FAQ X