org.mobicents.slee.resource.parlay.csapi.jr.cc.mpccs.activity.callleg
Class CallLegImpl

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.csapi.jr.cc.mpccs.activity.callleg.CallLegImpl
All Implemented Interfaces:
org.csapi.cc.mpccs.IpAppCallLegOperations, org.csapi.IpInterfaceOperations, org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection, org.mobicents.csapi.jr.slee.IpServiceConnection, CallLeg

public class CallLegImpl
extends java.lang.Object
implements CallLeg

Class Description for CallLegImpl


Constructor Summary
CallLegImpl(MultiPartyCallControlManager multiPartyCallControlManager, MultiPartyCall multiPartyCall, org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier tpCallLegIdentifier, org.csapi.cc.mpccs.IpCallLeg ipCallLeg, int callLegSessionID, ActivityManager activityManager, MpccsListener eventListener)
           
 
Method Summary
 void attachMediaErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void attachMediaReq()
           
 void attachMediaRes(int arg0)
           
 void callLegEnded(int arg0, org.csapi.cc.TpReleaseCause arg1)
           
 void closeConnection()
           
 void continueProcessing()
           
 void deassign()
           
 void detachMediaErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void detachMediaReq()
           
 void detachMediaRes(int arg0)
           
 void dispose()
          Destroys or deallocates all resources used by this call leg.
 void eventReportErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void eventReportReq(org.csapi.cc.TpCallEventRequest[] arg1)
           
 void eventReportRes(int arg0, org.csapi.cc.TpCallEventInfo arg1)
           
 javax.slee.resource.ActivityHandle getActivityHandle()
           
 org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier getCall()
           
 org.csapi.TpAddress getCurrentDestinationAddress()
           
 void getInfoErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void getInfoReq(int arg1)
           
 void getInfoRes(int arg0, org.csapi.cc.TpCallLegInfoReport arg1)
           
 org.csapi.cc.mpccs.IpCallLeg getIpCallLeg()
           
 MultiPartyCallControlManager getMpccsSession()
          Return the Parlay Session.
 org.csapi.cc.mpccs.TpCallLegIdentifier getParlayTpCallLegIdentifier()
          Return the Parlay identifier for this call.
 org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier getTpCallLegIdentifier()
          Return the SLEE identifier for this call.
 void init()
          Initialises the internal resources for this call leg.
 void release(org.csapi.cc.TpReleaseCause arg1)
           
 void routeErr(int arg0, org.csapi.cc.TpCallError arg1)
           
 void routeReq(org.csapi.TpAddress arg1, org.csapi.TpAddress arg2, org.csapi.cc.TpCallAppInfo[] arg3, org.csapi.cc.TpCallLegConnectionProperties arg4)
           
 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

CallLegImpl

public CallLegImpl(MultiPartyCallControlManager multiPartyCallControlManager,
                   MultiPartyCall multiPartyCall,
                   org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier tpCallLegIdentifier,
                   org.csapi.cc.mpccs.IpCallLeg ipCallLeg,
                   int callLegSessionID,
                   ActivityManager activityManager,
                   MpccsListener eventListener)
Method Detail

init

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

Specified by:
init in interface CallLeg

getTpCallLegIdentifier

public org.mobicents.csapi.jr.slee.cc.mpccs.TpCallLegIdentifier getTpCallLegIdentifier()
Description copied from interface: CallLeg
Return the SLEE identifier for this call.

Specified by:
getTpCallLegIdentifier in interface CallLeg
Returns:

getIpCallLeg

public org.csapi.cc.mpccs.IpCallLeg getIpCallLeg()

getMpccsSession

public MultiPartyCallControlManager getMpccsSession()
Description copied from interface: CallLeg
Return the Parlay Session.

Specified by:
getMpccsSession in interface CallLeg
Returns:

routeReq

public void routeReq(org.csapi.TpAddress arg1,
                     org.csapi.TpAddress arg2,
                     org.csapi.cc.TpCallAppInfo[] arg3,
                     org.csapi.cc.TpCallLegConnectionProperties arg4)
              throws org.csapi.TpCommonExceptions,
                     org.csapi.P_INVALID_NETWORK_STATE,
                     org.csapi.P_INVALID_ADDRESS,
                     org.csapi.P_UNSUPPORTED_ADDRESS_PLAN,
                     javax.slee.resource.ResourceException
Specified by:
routeReq in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
org.csapi.P_INVALID_ADDRESS
org.csapi.P_UNSUPPORTED_ADDRESS_PLAN
javax.slee.resource.ResourceException

eventReportReq

public void eventReportReq(org.csapi.cc.TpCallEventRequest[] arg1)
                    throws org.csapi.TpCommonExceptions,
                           org.csapi.P_INVALID_EVENT_TYPE,
                           org.csapi.P_INVALID_CRITERIA,
                           javax.slee.resource.ResourceException
Specified by:
eventReportReq in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
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.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
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.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

getCall

public org.mobicents.csapi.jr.slee.cc.mpccs.TpMultiPartyCallIdentifier getCall()
                                                                        throws org.csapi.TpCommonExceptions,
                                                                               javax.slee.resource.ResourceException
Specified by:
getCall in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

attachMediaReq

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

detachMediaReq

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

getCurrentDestinationAddress

public org.csapi.TpAddress getCurrentDestinationAddress()
                                                 throws org.csapi.TpCommonExceptions,
                                                        javax.slee.resource.ResourceException
Specified by:
getCurrentDestinationAddress in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

continueProcessing

public void continueProcessing()
                        throws org.csapi.TpCommonExceptions,
                               org.csapi.P_INVALID_NETWORK_STATE,
                               javax.slee.resource.ResourceException
Specified by:
continueProcessing in interface org.mobicents.csapi.jr.slee.cc.mpccs.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
org.csapi.P_INVALID_NETWORK_STATE
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.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

setAdviceOfCharge

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

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.IpCallLegConnection
Throws:
org.csapi.TpCommonExceptions
javax.slee.resource.ResourceException

deassign

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

eventReportRes

public void eventReportRes(int arg0,
                           org.csapi.cc.TpCallEventInfo arg1)
Specified by:
eventReportRes in interface org.csapi.cc.mpccs.IpAppCallLegOperations

eventReportErr

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

attachMediaRes

public void attachMediaRes(int arg0)
Specified by:
attachMediaRes in interface org.csapi.cc.mpccs.IpAppCallLegOperations

attachMediaErr

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

detachMediaRes

public void detachMediaRes(int arg0)
Specified by:
detachMediaRes in interface org.csapi.cc.mpccs.IpAppCallLegOperations

detachMediaErr

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

getInfoRes

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

getInfoErr

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

routeErr

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

superviseRes

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

superviseErr

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

callLegEnded

public void callLegEnded(int arg0,
                         org.csapi.cc.TpReleaseCause arg1)
Specified by:
callLegEnded in interface org.csapi.cc.mpccs.IpAppCallLegOperations

dispose

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

Specified by:
dispose in interface CallLeg

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

getParlayTpCallLegIdentifier

public org.csapi.cc.mpccs.TpCallLegIdentifier getParlayTpCallLegIdentifier()
Description copied from interface: CallLeg
Return the Parlay identifier for this call.

Specified by:
getParlayTpCallLegIdentifier in interface CallLeg
Returns:

getActivityHandle

public javax.slee.resource.ActivityHandle getActivityHandle()
Specified by:
getActivityHandle in interface CallLeg
Returns:
Returns the activityHandle.


Copyright © 2009. All Rights Reserved.