Request the clearing of an active call.
Mandatory for common channel signaling processes. The primitive is used only by exchange data link signaling processes that have registered with transfer capability (see SL_SIGPROC_CAPABILITY_TRANSFER).
The signaling interface library (libsl.a).
typedef struct { SL_ID id; int iseq_no; pid_t pidCHP; SL_PRIMITIVE_TYPE Command; SL_REQUEST_PARM_ST Parms; } SL_REQUEST_ST; ... typedef union { ... struct _call_terminate_request_st { size_t sizetLength; SL_CALL_REF slCallReference; int iChannelNo; int iVpackNo; SL_APPL_INFO_ST slApplInfo; } call_terminate_request_st; ... } SL_REQUEST_PARM_ST;
The SL_CALL_TERMINATE_REQ primitive is sent by the channel process to the signaling process to request to terminate or clear an active call. The channel process clears a call by sending the SL_CALL_TERMINATE_REQ primitive to the signaling process. The signaling process clears the call to the network. When the call has been cleared, the signaling process sends back the SL_CALL_TERMINATE_CNF primitive. When the SL_CALL_TERMINATE_CNF primitive has been received by Blueworx Voice Response, the voice channel is disconnected and the call is in the idle state.
The signaling process must always clear a call upon request.
The SL_CALL_TERMINATE_REQ primitive can also signify the completion of an earlier call transfer request (see Call transfer model).
An exchange data link should use this request to complete any pending call transfer requests, if necessary, before sending back the SL_CALL_TERMINATE_CNF primitive. If the transfer request can be completed by allowing the CAS signaling to perform a hangup, then the signaling process can send back the SL_CALL_TERMINATE_CNF immediately with a reply code of SL_REPLY_SUCCESS.
If there is no pending transfer request, then the SL_CALL_TERMINATE_CNF can be returned immediately with a reply code of SL_REPLY_SUCCESS.
The SL_CALL_TERMINATE_REQ primitive and the matching SL_CALL_TERMINATE_CNF correspond to the TerminateCall or CloseEverything state table actions. See the Blueworx Voice Response for AIX: Application Development using State Tables information.