org.mobicents.slee.resource.parlay.csapi.jr.cc.gccs.activity.callcontrolmanager
Class CallControlManagerImpl

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.csapi.jr.cc.gccs.activity.callcontrolmanager.CallControlManagerImpl
All Implemented Interfaces:
org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection, org.mobicents.csapi.jr.slee.IpServiceConnection, CallControlManager, ServiceSession

public class CallControlManagerImpl
extends java.lang.Object
implements CallControlManager


Field Summary
 
Fields inherited from interface org.mobicents.slee.resource.parlay.session.ServiceSession
GenericCallControl, MultiPartyCallControl, UserInteraction
 
Constructor Summary
CallControlManagerImpl(FwSession fwSession, org.csapi.cc.gccs.IpCallControlManager ipCallControlManager, GccsListener eventListener, ActivityManager activityManager, org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
           
 
Method Summary
protected  void activateIpAppCall()
           
protected  void activateIpAppCallControlManager()
           
 void addCall(int callSessionID, Call call)
           
 void callAborted(int callReference)
           
 void callEventNotify(org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier callReference, org.csapi.cc.gccs.TpCallEventInfo eventInfo, int assignmentID)
           
 void callNotificationContinued()
           
 void callNotificationInterrupted()
           
 void callOverloadCeased(int assignmentID)
           
 void callOverloadEncountered(int assignmentID)
           
 void changeCallNotification(int assignmentID, org.csapi.cc.gccs.TpCallEventCriteria eventCriteria)
           
 void closeConnection()
           
 org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier createCall()
           
 Call createCall(org.csapi.cc.gccs.TpCallIdentifier corbaTpCallIdentifier)
          Utility method for creating a new Call.
protected  void createPOAs(org.omg.CORBA.Policy[] policies)
           
protected  void deactivateIpAppCall()
           
protected  void deactivateIpAppCallControlManager()
           
 void destroy()
          Destroys this session
 void disableCallNotification(int assignmentID)
           
 int enableCallNotification(org.csapi.cc.gccs.TpCallEventCriteria eventCriteria)
           
 Call getCall(int callSessionID)
           
 org.csapi.cc.gccs.TpCallEventCriteriaResult[] getCriteria()
           
 org.csapi.cc.gccs.IpAppCall getIpAppCall()
          Return the underlying gateway interface.
 org.csapi.cc.gccs.IpAppCallControlManager getIpAppCallControlManager()
           
 IpAppCallControlManagerImpl getIpAppCallControlManagerImpl()
           
 IpAppCallImpl getIpAppCallImpl()
           
 org.mobicents.csapi.jr.slee.cc.gccs.IpCallConnection getIpCallConnection(org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier callIdentifier)
           
 org.csapi.cc.gccs.IpCallControlManager getIpCallControlManager()
           
 org.mobicents.csapi.jr.slee.TpServiceIdentifier getTpServiceIdentifier()
          Returns an identifier for the underlying service session
 int getType()
          Return an int identifying the type of this service.
 void init()
          Initialises this session.
 Call removeCall(int callSessionID)
           
 int setCallLoadControl(int duration, org.csapi.cc.TpCallLoadControlMechanism mechanism, org.csapi.cc.gccs.TpCallTreatment treatment, org.csapi.TpAddressRange addressRange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallControlManagerImpl

public CallControlManagerImpl(FwSession fwSession,
                              org.csapi.cc.gccs.IpCallControlManager ipCallControlManager,
                              GccsListener eventListener,
                              ActivityManager activityManager,
                              org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
Method Detail

init

public void init()
          throws javax.slee.resource.ResourceException
Description copied from interface: ServiceSession
Initialises this session.

Specified by:
init in interface ServiceSession
Throws:
javax.slee.resource.ResourceException

activateIpAppCall

protected void activateIpAppCall()
                          throws javax.slee.resource.ResourceException
Throws:
javax.slee.resource.ResourceException

activateIpAppCallControlManager

protected void activateIpAppCallControlManager()
                                        throws javax.slee.resource.ResourceException
Throws:
javax.slee.resource.ResourceException

createPOAs

protected void createPOAs(org.omg.CORBA.Policy[] policies)
                   throws javax.slee.resource.ResourceException
Parameters:
policies -
Throws:
javax.slee.resource.ResourceException

deactivateIpAppCall

protected void deactivateIpAppCall()

deactivateIpAppCallControlManager

protected void deactivateIpAppCallControlManager()

destroy

public void destroy()
Description copied from interface: ServiceSession
Destroys this session

Specified by:
destroy in interface ServiceSession

getCall

public Call getCall(int callSessionID)
Specified by:
getCall in interface CallControlManager
Returns:

removeCall

public Call removeCall(int callSessionID)
Specified by:
removeCall in interface CallControlManager
Returns:

addCall

public void addCall(int callSessionID,
                    Call call)
Specified by:
addCall in interface CallControlManager

createCall

public Call createCall(org.csapi.cc.gccs.TpCallIdentifier corbaTpCallIdentifier)
Utility method for creating a new Call.

Specified by:
createCall in interface CallControlManager
Returns:
See Also:
CallControlManager.createCall(org.csapi.cc.gccs.TpCallIdentifier)

callAborted

public void callAborted(int callReference)
Specified by:
callAborted in interface CallControlManager

callEventNotify

public void callEventNotify(org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier callReference,
                            org.csapi.cc.gccs.TpCallEventInfo eventInfo,
                            int assignmentID)
Specified by:
callEventNotify in interface CallControlManager

callNotificationInterrupted

public void callNotificationInterrupted()
Specified by:
callNotificationInterrupted in interface CallControlManager

callNotificationContinued

public void callNotificationContinued()
Specified by:
callNotificationContinued in interface CallControlManager

callOverloadEncountered

public void callOverloadEncountered(int assignmentID)
Specified by:
callOverloadEncountered in interface CallControlManager

callOverloadCeased

public void callOverloadCeased(int assignmentID)
Specified by:
callOverloadCeased in interface CallControlManager

getIpCallConnection

public org.mobicents.csapi.jr.slee.cc.gccs.IpCallConnection getIpCallConnection(org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier callIdentifier)
                                                                         throws javax.slee.resource.ResourceException
Specified by:
getIpCallConnection in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
javax.slee.resource.ResourceException

createCall

public org.mobicents.csapi.jr.slee.cc.gccs.TpCallIdentifier createCall()
                                                                throws org.csapi.TpCommonExceptions,
                                                                       javax.slee.resource.ResourceException
Specified by:
createCall in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

enableCallNotification

public int enableCallNotification(org.csapi.cc.gccs.TpCallEventCriteria eventCriteria)
                           throws javax.slee.resource.ResourceException,
                                  org.csapi.P_INVALID_EVENT_TYPE,
                                  org.csapi.TpCommonExceptions,
                                  org.csapi.P_INVALID_CRITERIA
Specified by:
enableCallNotification in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
javax.slee.resource.ResourceException
org.csapi.P_INVALID_EVENT_TYPE
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_CRITERIA

disableCallNotification

public void disableCallNotification(int assignmentID)
                             throws org.csapi.TpCommonExceptions,
                                    org.csapi.P_INVALID_ASSIGNMENT_ID,
                                    javax.slee.resource.ResourceException
Specified by:
disableCallNotification in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ASSIGNMENT_ID
javax.slee.resource.ResourceException

setCallLoadControl

public int setCallLoadControl(int duration,
                              org.csapi.cc.TpCallLoadControlMechanism mechanism,
                              org.csapi.cc.gccs.TpCallTreatment treatment,
                              org.csapi.TpAddressRange addressRange)
                       throws org.csapi.TpCommonExceptions,
                              org.csapi.P_INVALID_ADDRESS,
                              org.csapi.P_UNSUPPORTED_ADDRESS_PLAN,
                              javax.slee.resource.ResourceException
Specified by:
setCallLoadControl in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ADDRESS
org.csapi.P_UNSUPPORTED_ADDRESS_PLAN
javax.slee.resource.ResourceException

changeCallNotification

public void changeCallNotification(int assignmentID,
                                   org.csapi.cc.gccs.TpCallEventCriteria eventCriteria)
                            throws org.csapi.TpCommonExceptions,
                                   org.csapi.P_INVALID_ASSIGNMENT_ID,
                                   org.csapi.P_INVALID_CRITERIA,
                                   org.csapi.P_INVALID_EVENT_TYPE,
                                   javax.slee.resource.ResourceException
Specified by:
changeCallNotification in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ASSIGNMENT_ID
org.csapi.P_INVALID_CRITERIA
org.csapi.P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException

getCriteria

public org.csapi.cc.gccs.TpCallEventCriteriaResult[] getCriteria()
                                                          throws org.csapi.TpCommonExceptions,
                                                                 javax.slee.resource.ResourceException
Specified by:
getCriteria in interface org.mobicents.csapi.jr.slee.cc.gccs.IpCallControlManagerConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

closeConnection

public void closeConnection()
                     throws javax.slee.resource.ResourceException
Specified by:
closeConnection in interface org.mobicents.csapi.jr.slee.IpServiceConnection
Throws:
javax.slee.resource.ResourceException

getIpAppCall

public org.csapi.cc.gccs.IpAppCall getIpAppCall()
Description copied from interface: CallControlManager
Return the underlying gateway interface.

Specified by:
getIpAppCall in interface CallControlManager
Returns:

getTpServiceIdentifier

public org.mobicents.csapi.jr.slee.TpServiceIdentifier getTpServiceIdentifier()
Description copied from interface: ServiceSession
Returns an identifier for the underlying service session

Specified by:
getTpServiceIdentifier in interface CallControlManager
Specified by:
getTpServiceIdentifier in interface ServiceSession
Returns:

getType

public int getType()
Description copied from interface: ServiceSession
Return an int identifying the type of this service.

Specified by:
getType in interface ServiceSession
Returns:

getIpAppCallControlManagerImpl

public IpAppCallControlManagerImpl getIpAppCallControlManagerImpl()
Returns:
Returns the ipAppCallControlManagerImpl.

getIpAppCallImpl

public IpAppCallImpl getIpAppCallImpl()
Returns:
Returns the ipAppCallImpl.

getIpCallControlManager

public org.csapi.cc.gccs.IpCallControlManager getIpCallControlManager()
Returns:
Returns the ipCallControlManager.

getIpAppCallControlManager

public org.csapi.cc.gccs.IpAppCallControlManager getIpAppCallControlManager()
Returns:
Returns the ipAppCallControlManager.


Copyright © 2009. All Rights Reserved.