<Redirect>

The Redirect element directs the call to another InboundXML document. The URL of the InboundXML document is nested within the Redirect 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 Response 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 Redirect element cannot be nested within any other elements besides the default Response 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>