Docs
<goTo>
This command stops executing the current XML script and makes request to the provided URL for another XML file.
Attribute | Description | Default Value |
---|---|---|
method | Method to be used to make a request to the specified controller. | POST |
The following parameters for voice are sent to the controller URL if specified.
Parameter | Description |
---|---|
call_sid | Unique call identifier. |
account_sid | Unique account identifier. |
from | Caller phone number (conventional or virtual). |
to | Recipient’s phone number (conventional or virtual). |
status | Call status. Can be completed, in-progress, or failed. |
direction | Call direction. Either inbound or outbound. |
The following parameters for messages are sent to the controller URL if specified.
Parameter | Description |
---|---|
message_sid | Unique message identifier. |
account_sid | Unique account identifier. |
from | Sender’s phone number (conventional or virtual). |
to | Recipient’s phone number (conventional or virtual). |
text | Message text. |
EXAMPLE
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<goTo>http://myhost.com/anotherInstruction.xml</goTo>
</response>