|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IpCallControlManagerConnection
This interface is the 'service manager' interface for the Generic Call Control Service. The generic call control manager interface provides the management functions to the generic call control service. The application programmer can use this interface to provide overload control functionality, create call objects and to enable or disable call-related event notifications. This interface shall be implemented by a Generic Call Control SCF. As a minimum requirement either the createCall() method shall be implemented, or the enableCallNotification() and disableCallNotification() methods shall be implemented.
| Method Summary | |
|---|---|
void |
changeCallNotification(int assignmentID,
TpCallEventCriteria eventCriteria)
This method is used by the application to change the event criteria introduced with enableCallNotification. |
TpCallIdentifier |
createCall()
This method is used to create a new call object. |
void |
disableCallNotification(int assignmentID)
This method is used by the application to disable call notifications. |
int |
enableCallNotification(TpCallEventCriteria eventCriteria)
This method is used to enable call notifications so that events can be sent to the application. |
TpCallEventCriteriaResult[] |
getCriteria()
This method is used by the application to query the event criteria set with enableCallNotification or changeCallNotification. |
IpCallConnection |
getIpCallConnection(TpCallIdentifier callIdentifier)
Obtains Access To a IpCallConnection interface |
int |
setCallLoadControl(int duration,
TpCallLoadControlMechanism mechanism,
TpCallTreatment treatment,
TpAddressRange addressRange)
This method imposes or removes load control on calls made to a particular address range within the generic call control service. |
| Methods inherited from interface org.mobicents.csapi.jr.slee.IpServiceConnection |
|---|
closeConnection |
| Method Detail |
|---|
IpCallConnection getIpCallConnection(TpCallIdentifier callIdentifier)
throws javax.slee.resource.ResourceException
ResourceException - If it is not possible to create the connection
TpCallIdentifier createCall()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
int enableCallNotification(TpCallEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
javax.slee.resource.ResourceException
eventCriteria - Specifies the event specific criteria used by the application to define the event required. Only events that meet these criteria are reported. Examples of events are "incoming call attempt reported by network", "answer", "no answer", "busy". Individual addresses or address ranges may be specified for destination and/or origination.
TpCommonExceptions
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException
void disableCallNotification(int assignmentID)
throws TpCommonExceptions,
P_INVALID_ASSIGNMENT_ID,
javax.slee.resource.ResourceException
assignmentID - Specifies the assignment ID given by the generic call control manager interface when the previous enableCallNotification() was called. If the assignment ID does not correspond to one of the valid assignment IDs, the exception P_INVALID_ASSIGNMENTID will be raised. If two callbacks have been registered under this assignment ID both of them will be disabled.
TpCommonExceptions
P_INVALID_ASSIGNMENT_ID
javax.slee.resource.ResourceException
int setCallLoadControl(int duration,
TpCallLoadControlMechanism mechanism,
TpCallTreatment treatment,
TpAddressRange addressRange)
throws TpCommonExceptions,
P_INVALID_ADDRESS,
P_UNSUPPORTED_ADDRESS_PLAN,
javax.slee.resource.ResourceException
duration - Specifies the duration for which the load control should be set.
A duration of 0 indicates that the load control should be removed.
A duration of -1 indicates an infinite duration (i.e., until disabled by the application)
A duration of -2 indicates the network default duration.mechanism - Specifies the load control mechanism to use (for example, admit one call per interval), and any necessary parameters, such as the call admission rate. The contents of this parameter are ignored if the load control duration is set to zero.treatment - Specifies the treatment of calls that are not admitted. The contents of this parameter are ignored if the load control duration is set to zero.addressRange - Specifies the address or address range to which the overload control should be applied or removed.
TpCommonExceptions
P_INVALID_ADDRESS
P_UNSUPPORTED_ADDRESS_PLAN
javax.slee.resource.ResourceException
void changeCallNotification(int assignmentID,
TpCallEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_ASSIGNMENT_ID,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
javax.slee.resource.ResourceException
assignmentID - Specifies the ID assigned by the generic call control manager interface for the event notification. If two call backs have been registered under this assignment ID both of them will be changed.eventCriteria - Specifies the new set of event specific criteria used by the application to define the event required. Only events that meet these criteria are reported.
TpCommonExceptions
P_INVALID_ASSIGNMENT_ID
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
javax.slee.resource.ResourceException
TpCallEventCriteriaResult[] getCriteria()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||