<Redirect>

The element directs the call to another InboundXML document. The URL of the InboundXML document is nested within the element, and the method attribute sets if the request will be a GET or a POST. In addition to the default voice request parameters, the parameter urlBase will also be forwarded when the redirect request is made. urlBase points to the base InboundXML document where the occurred.
###Element Attributes

Attribute

Description

method
optional

Method used to request the InboundXML document when the call is being redirected.
Valid values: POST, GET
Default value: POST

Nesting

The element cannot be nested within any other elements besides the default element.

<Response>
  <Say>You will now be redirected</Say>
  <Redirect method="POST">http://example.com/rest.xml</Redirect>
  <Say>You will never hear this.</Say>
</Response>

Did this page help you?