org.mobicents.slee.resource.parlay.csapi.jr.cc.mpccs.activity.multipartycall
Class MultiPartyCallImpl

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.csapi.jr.cc.mpccs.activity.multipartycall.MultiPartyCallImpl
All Implemented Interfaces:
org.csapi.cc.mpccs.IpAppMultiPartyCallOperations, org.csapi.IpInterfaceOperations, org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection, org.mobicents.csapi.jr.slee.IpServiceConnection, MultiPartyCall

public class MultiPartyCallImpl
extends java.lang.Object
implements MultiPartyCall

Context object for a Multi Party Call.


Constructor Summary
MultiPartyCallImpl(MultiPartyCallControlManager multiPartyCallControlManager, org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier tpMultiPartyCallIdentifier, org.csapi.cc.mpccs.IpMultiPartyCall ipMultiPartyCall, int callSessionID, ActivityManager activityManager, MpccsListener eventListener, EDU.oswego.cs.dl.util.concurrent.Executor[] ipAppCallLegExecutors)
           
 
Method Summary
protected  void activateIpAppCallLeg()
           
 void addCallLeg(int callLegSessionID, CallLeg callLeg)
          Stores a new call leg in this call.
 void callEnded(int arg0, org.csapi.cc.TpCallEndedReport arg1)
           
 void closeConnection()
           
 void createAndRouteCallLegErr(int arg0, org.csapi.cc.mpccs.TpCallLegIdentifier arg1, org.csapi.cc.TpCallError arg2)
           
 org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier createAndRouteCallLegReq(org.csapi.cc.TpCallEventRequest[] arg1, org.csapi.TpAddress arg2, org.csapi.TpAddress arg3, org.csapi.cc.TpCallAppInfo[] arg4)
           
 org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier createCallLeg()
           
 void deassignCall()
           
 void dispose()
          Destroys or deallocates all resources used by this call.
 javax.slee.resource.ActivityHandle getActivityHandle()
           
 CallLeg getCallLeg(int callLegSessionID)
          Return the call leg identified by the Slee call leg identifier.
 org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier[] getCallLegs()
           
 int getCallSessionID()
           
 void getInfoErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void getInfoReq(int arg1)
           
 void getInfoRes(int arg0, org.csapi.cc.TpCallInfoReport arg1)
           
 org.csapi.cc.mpccs.IpAppCallLeg getIpAppCallLeg()
          Return the call leg callback.
 org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection getIpCallLegConnection(org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier callLegIdentifier)
           
 org.csapi.cc.mpccs.IpMultiPartyCall getIpMultiPartyCall()
           
 org.csapi.cc.mpccs.TpMultiPartyCallIdentifier getParlayTpMultiPartyCallIdentifier()
          Return the underlying gateway interface.
 org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier getTpMultiPartyCallIdentifier()
          Return the SLEE identifier for this call.
 void init()
          Initialises the internal resources for this call.
 void release(org.csapi.cc.TpReleaseCause arg1)
           
 CallLeg removeCallLeg(int callLegSessionID)
          Removes a new call leg in this call.
 void setAdviceOfCharge(org.csapi.TpAoCInfo arg1, int arg2)
           
 void setChargePlan(org.csapi.cc.TpCallChargePlan arg1)
           
 void superviseErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void superviseReq(int arg1, int arg2)
           
 void superviseRes(int arg0, int arg1, int arg2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartyCallImpl

public MultiPartyCallImpl(MultiPartyCallControlManager multiPartyCallControlManager,
                          org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier tpMultiPartyCallIdentifier,
                          org.csapi.cc.mpccs.IpMultiPartyCall ipMultiPartyCall,
                          int callSessionID,
                          ActivityManager activityManager,
                          MpccsListener eventListener,
                          EDU.oswego.cs.dl.util.concurrent.Executor[] ipAppCallLegExecutors)
Method Detail

init

public void init()
Description copied from interface: MultiPartyCall
Initialises the internal resources for this call.

Specified by:
init in interface MultiPartyCall

activateIpAppCallLeg

protected void activateIpAppCallLeg()

getTpMultiPartyCallIdentifier

public org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier getTpMultiPartyCallIdentifier()
Description copied from interface: MultiPartyCall
Return the SLEE identifier for this call.

Specified by:
getTpMultiPartyCallIdentifier in interface MultiPartyCall
Returns:

getIpAppCallLeg

public org.csapi.cc.mpccs.IpAppCallLeg getIpAppCallLeg()
Description copied from interface: MultiPartyCall
Return the call leg callback.

Specified by:
getIpAppCallLeg in interface MultiPartyCall
Returns:

getCallLeg

public CallLeg getCallLeg(int callLegSessionID)
Description copied from interface: MultiPartyCall
Return the call leg identified by the Slee call leg identifier.

Specified by:
getCallLeg in interface MultiPartyCall
Returns:

addCallLeg

public void addCallLeg(int callLegSessionID,
                       CallLeg callLeg)
Description copied from interface: MultiPartyCall
Stores a new call leg in this call.

Specified by:
addCallLeg in interface MultiPartyCall

removeCallLeg

public CallLeg removeCallLeg(int callLegSessionID)
Description copied from interface: MultiPartyCall
Removes a new call leg in this call.

Specified by:
removeCallLeg in interface MultiPartyCall

getIpMultiPartyCall

public org.csapi.cc.mpccs.IpMultiPartyCall getIpMultiPartyCall()

getCallSessionID

public int getCallSessionID()

getActivityHandle

public javax.slee.resource.ActivityHandle getActivityHandle()
Specified by:
getActivityHandle in interface MultiPartyCall
Returns:

getCallLegs

public org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier[] getCallLegs()
                                                                       throws org.csapi.TpCommonExceptions,
                                                                              javax.slee.resource.ResourceException
Specified by:
getCallLegs in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

createCallLeg

public org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier createCallLeg()
                                                                       throws org.csapi.TpCommonExceptions,
                                                                              javax.slee.resource.ResourceException
Specified by:
createCallLeg in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

createAndRouteCallLegReq

public org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier createAndRouteCallLegReq(org.csapi.cc.TpCallEventRequest[] arg1,
                                                                                         org.csapi.TpAddress arg2,
                                                                                         org.csapi.TpAddress arg3,
                                                                                         org.csapi.cc.TpCallAppInfo[] arg4)
                                                                                  throws org.csapi.TpCommonExceptions,
                                                                                         org.csapi.P_INVALID_ADDRESS,
                                                                                         org.csapi.P_UNSUPPORTED_ADDRESS_PLAN,
                                                                                         org.csapi.P_INVALID_NETWORK_STATE,
                                                                                         org.csapi.P_INVALID_EVENT_TYPE,
                                                                                         org.csapi.P_INVALID_CRITERIA,
                                                                                         javax.slee.resource.ResourceException
Specified by:
createAndRouteCallLegReq in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_ADDRESS
org.csapi.P_UNSUPPORTED_ADDRESS_PLAN
org.csapi.P_INVALID_NETWORK_STATE
org.csapi.P_INVALID_EVENT_TYPE
org.csapi.P_INVALID_CRITERIA
javax.slee.resource.ResourceException

release

public void release(org.csapi.cc.TpReleaseCause arg1)
             throws org.csapi.TpCommonExceptions,
                    org.csapi.P_INVALID_NETWORK_STATE,
                    javax.slee.resource.ResourceException
Specified by:
release in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
javax.slee.resource.ResourceException

deassignCall

public void deassignCall()
                  throws org.csapi.TpCommonExceptions,
                         javax.slee.resource.ResourceException
Specified by:
deassignCall in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

getInfoReq

public void getInfoReq(int arg1)
                throws org.csapi.TpCommonExceptions,
                       javax.slee.resource.ResourceException
Specified by:
getInfoReq in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

setChargePlan

public void setChargePlan(org.csapi.cc.TpCallChargePlan arg1)
                   throws org.csapi.TpCommonExceptions,
                          javax.slee.resource.ResourceException
Specified by:
setChargePlan in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

setAdviceOfCharge

public void setAdviceOfCharge(org.csapi.TpAoCInfo arg1,
                              int arg2)
                       throws org.csapi.TpCommonExceptions,
                              javax.slee.resource.ResourceException,
                              org.csapi.P_INVALID_CURRENCY,
                              org.csapi.P_INVALID_AMOUNT
Specified by:
setAdviceOfCharge in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException
org.csapi.P_INVALID_CURRENCY
org.csapi.P_INVALID_AMOUNT

superviseReq

public void superviseReq(int arg1,
                         int arg2)
                  throws org.csapi.TpCommonExceptions,
                         javax.slee.resource.ResourceException
Specified by:
superviseReq in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

getInfoRes

public void getInfoRes(int arg0,
                       org.csapi.cc.TpCallInfoReport arg1)
Specified by:
getInfoRes in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

getInfoErr

public void getInfoErr(int arg0,
                       org.csapi.cc.TpCallError arg1)
Specified by:
getInfoErr in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

superviseRes

public void superviseRes(int arg0,
                         int arg1,
                         int arg2)
Specified by:
superviseRes in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

superviseErr

public void superviseErr(int arg0,
                         org.csapi.cc.TpCallError arg1)
Specified by:
superviseErr in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

callEnded

public void callEnded(int arg0,
                      org.csapi.cc.TpCallEndedReport arg1)
Specified by:
callEnded in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

createAndRouteCallLegErr

public void createAndRouteCallLegErr(int arg0,
                                     org.csapi.cc.mpccs.TpCallLegIdentifier arg1,
                                     org.csapi.cc.TpCallError arg2)
Specified by:
createAndRouteCallLegErr in interface org.csapi.cc.mpccs.IpAppMultiPartyCallOperations

dispose

public void dispose()
Description copied from interface: MultiPartyCall
Destroys or deallocates all resources used by this call.

Specified by:
dispose in interface MultiPartyCall

getIpCallLegConnection

public org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection getIpCallLegConnection(org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier callLegIdentifier)
                                                                                throws javax.slee.resource.ResourceException
Specified by:
getIpCallLegConnection in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpMultiPartyCallConnection
Throws:
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

getParlayTpMultiPartyCallIdentifier

public org.csapi.cc.mpccs.TpMultiPartyCallIdentifier getParlayTpMultiPartyCallIdentifier()
Description copied from interface: MultiPartyCall
Return the underlying gateway interface.

Specified by:
getParlayTpMultiPartyCallIdentifier in interface MultiPartyCall
Returns:


Copyright © 2009. All Rights Reserved.