Use AnswerCall to respond to a ringing line.
This action establishes the connection between the caller and Blueworx Voice Response for an incoming call. An application cannot execute actions that use the telephone line (GetData, GetKey, and so on) until this connection is established. Note that multiple AnswerCall actions do not result in the application sending multiple off-hook signals to the switch.
When Blueworx Voice Response makes an outbound call, connection is established when the called party picks up the telephone.
The AnswerCall action need not be in the same state table as the Get actions, but must have been executed before these actions in a state table that is part of the same voice application.
When you use the Incoming Call state table, you can still use the AnswerCall action in your state tables because, once a call has been answered, subsequent AnswerCall actions are ignored by Blueworx Voice Response. However, AnswerCall actions in your state tables are used by the state table debugger and may be useful.
AnswerCall supports use of the system variable SV541 to pass additional call information from a state table to a signaling process, and SV542 to receive information back from the signaling process. See Transferring information between a state table and a signaling process for more details on how information can be communicated between the application and a signaling process such as ISDN. Note the following considerations that are specific to the use of the variables within AnswerCall:
Use AnswerCall to answer an incoming call notified by a custom-written common channel signaling process, such as ISDN or SS7. When Blueworx Voice Response receives an incoming call from such a signaling process, it fills in the following system variables with information received from the network about the call:
If no application is configured to answer the call, Blueworx Voice Response automatically requests the signaling process to clear the call.
Use AnswerCall to answer an incoming call notified across an ISDN network. When Blueworx Voice Response receives an incoming call over ISDN, which is indicated by an inbound SETUP message, it automatically responds by sending an ALERTING message. This tells the network that the incoming call has been received, and that an application or user is being notified of the call.
If no application is configured to answer the call, Blueworx Voice Response automatically clears that call to the network, by sending a RELEASE message specifying a cause code of No User Responding. When an application issues the AnswerCall action, the ISDN signaling process sends the CONNECT message to the network, when it receives the CONNECT ACK message from the network, indicating that an end-to-end connection exists, and the AnswerCall action completes. If any error occurs while answering the call, Blueworx Voice Response will clear the call and return the Not Ringing result.
No parameters are required.
The AnswerCall confirms the acceptance of the call and indicates to the network to create a traffic path. The AnswerCall does not reassert the information in system variable SV542, so you should ensure that the previous information is saved, as SV542 may be cleared or reset.
No parameters are required.
AnswerCall can have one of the following results:
For ISDN the network has connected the call end-to-end.
For ISDN the call is not connected end-to-end, either because it was not ringing or could not be answered for any reason.
Cause Code: Any.
When using an ASCII editor, code this action as the example demonstrates:
label: "Check Edges" AnswerCall() edge EDGE_AC_COMPLETED: completed edge EDGE_AC_NOT_RINGING: not_ringing ;
The edges are described above under "Possible results". For more information, see Testing a state table using the debugger.