The ParlayX Third-Party Call Control interface allows a client application:
When an "initiate call" request is received, CommuniGate Pro starts the parlayMakeCall Real-Time application on behalf of the authenticated user.
The application parameters are the request parameters: the calling party and called party addresses, and, optionally, the charging parameter.
The callIdentifier returned is the Task ID of the started application.
The "cancel call" and "end call" requests are sent to the started application as cancelCall and endCall events.
The "read status" request returns the contents of the "application status" dictionary set with the started application.
The "add participant" and "delete participant" requests are sent to the started application as addCallPeer and delCallPeer events; the event parameter contains the participant URI specified in the request.
The "transfer participant" requests are sent to the started application as two events. First, the transferTarget event is sent. Its parameter contains the destination session Task ID. Then the transferCallPeer event is sent. Its parameter contains the participant URI specified in the request.
The application does not quit immediately after the call fails or is terminated. The application continues to run for some period of time (30 seconds by default), processing the "read status" requests for the completed call/session.