The <Redirect> element transfers control of a call to a different URL and expects to receive a new XML document. A list of URLs separated by commas can be passed to permit fallback in case of webserver failure. Any elements after <Redirect> are ignored.

Element Attributes

The <Redirect> element doesn't support any attributes.

Examples

Example 1

In this example, we have a <Redirect> element after a <Speak> element. When the <Speak> element finishes, the <Redirect> element executes. <Redirect> makes an request to http://www.foo.com/nextInstructions and transfers the call control to the XML received in response to that request.

1
2
3
4
5
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
	<Speak voice="rms">Please wait while your call is being transferred</Speak>
	<Redirect>http://www.foo.com/nextInstructions</Redirect>
</Response>