org.mobicents.csapi.jr.slee.cc.gccs
Class CallEventNotifyEvent

java.lang.Object
  extended by org.mobicents.csapi.jr.slee.ResourceEvent
      extended by org.mobicents.csapi.jr.slee.cc.gccs.CallEventNotifyEvent
All Implemented Interfaces:
java.io.Serializable

public class CallEventNotifyEvent
extends ResourceEvent

This event notifies the application of the arrival of a call-related event. If this method is invoked with a monitor mode of P_CALL_MONITOR_MODE_INTERRUPT, then the APL has control of the call. If the APL does nothing with the call (including its associated legs) within a specified time period (the duration of which forms a part of the service level agreement), then the call in the network shall be released and callEnded() shall be invoked, giving a release cause of 102 (Recovery on timer expiry). Setting the callback reference: A reference to the application interface has to be passed back to the call interface to which the notification relates. However, the setting of a call back reference is only applicable if the notification is in INTERRUPT mode. When the callEventNotify() method is invoked with a monitor mode of P_CALL_MONITOR_MODE_INTERRUPT, the application writer should ensure that no continue processing e.g. routeReq() is performed until an IpAppCall has been passed to the gateway, either through an explicit setCallbackWithSessionID() invocation on the supplied IpCall, or via the return of the callEventNotify() method. The callback reference can be registered either in a) callEventNotify() or b) explicitly with a setCallbackWithSessionID() method e.g. depending on how the application provides its call reference. Case a: From an efficiency point of view the callEventNotify() with explicit pass of registration may be the preferred method. Case b:: The callEventNotify with no callback reference ("Null" value) is used where (e.g. due to distributed application logic) the callback reference is provided subsequently in a setCallbackWithSessionID(). In case the callEventNotify() contains no callback, at the moment the application needs to be informed the gateway will use as callback the callback that has been registered by setCallbackWithSessionID(). See example in 4.6.

See Also:
Serialized Form

Constructor Summary
CallEventNotifyEvent(TpServiceIdentifier tpServiceIdentifier, TpCallIdentifier callReference, TpCallEventInfo eventInfo, int assignmentID)
          Constructor for CallEventNotifyEvent
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 int getAssignmentID()
          Returns the assignmentID
 TpCallIdentifier getCallReference()
          Returns the callReference
 TpCallEventInfo getEventInfo()
          Returns the eventInfo
 int hashCode()
          Returns a hashcode value for the object.
 
Methods inherited from class org.mobicents.csapi.jr.slee.ResourceEvent
getService
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallEventNotifyEvent

public CallEventNotifyEvent(TpServiceIdentifier tpServiceIdentifier,
                            TpCallIdentifier callReference,
                            TpCallEventInfo eventInfo,
                            int assignmentID)
Constructor for CallEventNotifyEvent

Parameters:
tpServiceIdentifier - the service this event is related to
Method Detail

getCallReference

public TpCallIdentifier getCallReference()
Returns the callReference


getEventInfo

public TpCallEventInfo getEventInfo()
Returns the eventInfo


getAssignmentID

public int getAssignmentID()
Returns the assignmentID


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object


Copyright © 2009. All Rights Reserved.