API Description for Extended Web Services
Get Adobe Reader |
The following sections provide detailed information about the Call Control service capability:
The call control Web Service provides an application with functions for call routing, call management, and call leg management. It also provides functions for registering listeners to application initiated and network initiated call sessions.
The service supports establishment of multiparty calls if supported by the underlying platform. Two main usage scenarios are identified; application initiated and network initiated calls.
This section covers application initiated calls.
When a call session has been created, a callTicket is returned. This callTicket is used to identify a given call session and manipulate it.
The following gives an outline of the the Call Control Web Service:
Adds a call listener to a call-session initiated by an application. The listener must be a Web Service implemented by the application. The listener receives callbacks with information on the status of the call and error events.
Identifier for the call as retrieved when createCall or createEmptyCall was invoked. |
||
The URL to the Web Service that implements the listener interface. See Listener interface. An example is |
||
See CallException. |
||
See GeneralException. |
Adds a call listener to call-session initiated from the network. The listener must be a Web Service implemented by the application.
The listener is triggered when:
The listener receives callbacks with information on A-number, B-number and so on in the methods processCallStatusEvent and processCallErrorEvent.
If there are more than one listeners registered for identical criteria, and those listeners are registered from the same application, the listener will be added to a High Availability and Load Balancing list. This means that the network initiated calls matching this criteria will be distributed using a round robin algorithm between the listeners with identical criteria.
If the above is false, and there already is a listener registered for an address that overlaps this listener, an exception is raised.
The URL to the Web Service that implements the listener interface. See Listener interface. An example is |
||
Originator address in URI format (tel:<address>). See Address expressions for information on format. |
||
Originator address in URI format (tel:<address>). See Address expressions for information on format. |
||
See CallException. |
||
See GeneralException. |
Adds a new participant to an ongoing call. The application execution continues without waiting for the participant to answer. Notifications when the participant has answered comes in the Web Service defined and registered by the application, see addListener.
The ongoing call is identified by the parameter callTicket.
Ticket retrieved when the call was created. See createCall or createEmptyCall. |
||
Address to the new participant in URI format (tel:<address>). See Address expressions for information on format. |
||
See CallException. This exception is raised if the participant could not be added. |
||
See GeneralException. |
Adds a new participant to an ongoing call. The appplication execution holds until the participant answers or until the timeout expires.
The ongoing call is identified by the parameter callTicket.
Ticket retrieved when the call was created. See createCall or createEmptyCall. |
||
Address to the new participant in URI format (tel:<address>). See Address expressions for information on format. |
||
See CallException. This exception is raised if the participant could not be added. |
||
See GeneralException. |
Create a call session with an originator. The originator is identified and the application execution holds until the originator goes off-hook or a timer expires.
Address to the originator in URI format (tel:<address>). See Address expressions for information on format. |
||
The time in seconds to wait for the originator to go off-hook. |
||
See CallException. |
||
See GeneralException. |
Create a call session without an originator.
See CallException.This exception is raised when the underlying platform filed to create a call object. |
||
See GeneralException. |
When a call is deassigned the application will no longer receive events regarding call progress and the callTicket cannot be used for further processing of the call.
The control of the call is handed over to the underlying network.
See CallException. This exception is raised when the call could be deassigned. |
||
See GeneralException. |
Hangs up all the participants and ends the call.
See CallException. This exception is raised when the call could not be ended. |
||
See GeneralException. |
Gets the owner, or originator of the call.
Address of the originator of the call in URI format (tel:<address>). See Address expressions for information on format |
||
See CallException. This exception is raised when the originator could not be retrieved. |
||
See GeneralException. |
Get a list of all participants in the call. The originator of the call is not included in the list.
See ArrayOf_xsd_string. Array of addresses of the participants in the call. See Address expressions for information on format of each individual element in the array. |
||
See CallException. This exception is raised when the participants could not be retrieved. |
||
See GeneralException. |
Removes a previously registered network call listener. See addNetworkCallListener.
The ticket retrieved when the network call listener was added. |
||
See CallException.This exception is raised when the network call listener could not be removed. |
||
See GeneralException. |
Remove an individual participant in an ongoing call session.
Address of the participant to remove from the call session in URI format (tel:<address>). See Address expressions for information on format. |
||
See CallException.This exception is raised when the address of the participant could not be found among the participants in the call. |
||
See GeneralException. |
Exceptions of this type are raised when there are error conditions related to the call control Web Service. Other error conditions are reported using the exception GeneralExcepetion.
This exception is raised when the applications session has expired or there are communication problems with the underlying platform.
Array of call criteria, see CallEventCriteria for information on the individual records in the array.
Defines errors that can occur during a call-setup or a call.
Enumeration with the following values:
This data type contains two elements:
The event part of the CallEventCriteria type defines when and for which call-related events an application shall be notified.
The application can subscribe for notifications related to an originating number and a destination number, either one of them or a combination of both. Notifications can be subscribed for either when:
In addition, a set of notifications exists for events that occurs during a call:
See NetworkCallEvent for details on valid parameters for the event element.
The monitorMode part of the CallEventCriteria type defines how the application can affect a call. An application that has subscribed for notifications according to the criterias available are notified using either Interrupted mode or Notified mode. Calls that are triggered in Interrupted mode may affect the call, for example by routing the call to another destination or entering another participant in a multiparty conference call. Calls that are triggered in Notfication mode can only be surveilled. See CallMonitorMode for details on valid parameters for the monitorMode element.
Enumeration with one of the following values:
Defines valid call related events that an application can subscribe to during a call:
The following rules apply to the address expressions.
For E.164 addresses (normal telephone numbers), these wildcards are allowed at the beginning or the end of an address.
Examples of valid for E.164 addresses:
The following address ranges are illegal:
Legal occurrences of the wildcards should be escaped by a '\' character. For example, to specify a '\' character, '\\' must be used.
The call control listener interface defines the methods that the underlying platform invokes on a Web Service that is implemented by an application. When an application performs asynchronous requests from the call control Web Service, the responses are delivered according to this interface.
This method is invoked when the call session has ended. The call session ends when the last participant in the call goes on-hook, or when the application has ended the call. See method end.
Used by the underlying system to inform the application that the call session identified by callTicket is no longer valid. The application can not use the call user session no more.
Errors related to call sessions are reported using this method.
See CallErrorEvent. Type of error. |
||
See CallStatusEvent. Type of event. |
||
Array of call error codes, see CallErrorCode for information on the individual records in the array.
Enumeration with one of the following values:
Array of call status codes, see CallStatusCode for information on the individual records in the array.
Enumeration with one of the following values:
The network initiated call l listener interface defines the methods that the underlying platform invokes on a Web Service that is implemented by an application.
This listener interface is used for calls that originates from the network. Which phone numbers to survey are defined in the call control Web Service, see addNetworkCallListener.
Used by the underlying system to inform the application that the call session identified by callTicket is no longer valid. The application can not use the call session no more.
A listenerTicket identifying the call. Retrieved when addNetworkCallListener was invoked. |
||
Call session setup originating from the network, and supervised in monitor mode INTERRUPT, see addNetworkCallListener. These call sessions can be controlled by the call control Web Service.
A listenerTicket identifying the call. Retrieved when addNetworkCallListener was invoked. |
||
A callTicket identifying the call. Used to control the call session using the call control Web Service. |
||
The address of the originator of the call in URI format (tel:<address>). |
||
The address of the destination number dialled by the originator in URI format (tel:<address>). |
||
See NetworkCallEvent. |
||
Call session setup originating from the network, and supervised in monitor mode NOTIFY, see addNetworkCallListener. These call sessions can be controlled by the call control Web Service.
A listenerTicket identifying the call. Retrieved when addNetworkCallListener was invoked. |
||
The address of the originator of the call in URI format (tel:<address>). |
||
The address of the destination number dialled by the originator in URI format (tel:<address>). |
||
See NetworkCallEvent. |
||