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;
    
    /*
     * 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 = 4;
    
    // ID of this error event
    private int errorID;

    
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 == ..) {
    	} else if (reason == ..) {
    	}
    }

    
Returns the ID of the error.

Returns:
Error ID.
    public int getErrorID() {
        return ;
    }
New to GrepCode? Check out our FAQ X