<Answer/>
Last updated
Last updated
The <Answer/>
tag in Opentact's XML scripting is used to send a SIP 200 OK message back to the caller, indicating that the call has been answered and media transmission is about to begin. This tag is particularly useful when manual control over the answering process is required. The SIP 200 OK message signifies that the call has been accepted, and it is typically followed by media transmission.
The tag is used to explicitly instruct Opentact to answer an incoming call. This tag is typically not needed when the SIPControlApp.auto_answer flag is set to true, as Opentact automatically answers the call in such cases. It can be useful in scenarios where you want to manually control when the call is answered.
Here is an example of using the <Answer>
tag in a Dialplan XML:
In this example, the <Answer>
tag includes a delay attribute of 2000 milliseconds, providing a brief pause before answering the call. The tag attribute "123456" is a notification event tag used for call notification events if configured. Following the <Answer>
tag, a <Say>
tag is used to provide a message to the caller after the call is answered.
The <Answer> tab has the following parameters:
Tag name | Required | Description |
---|---|---|
delay
No
This is the number of ms to wait before Opentact will execute the next dialplan xml command after <Answer>.
tag
No
This tag is to add a custom tag value that is to be included in the Call_Answered event.