Skip to main content

<Redirect>

TL;DR

<Redirect> the current call-flow to a new voice application.

Need Help? Let's Talk

Join our Discord community - we're here to help.

Description

The <Redirect> verb transfers control of a call to a new CXML application at a different URL. The session switches to run the new CXML application and any verbs after <Redirect> are ignored.

Example

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Redirect method="POST">http://my.remote.server/cxml.xml</Redirect>
</Response>

Attributes

The following attributes are supported:

Attribute NameAllowed ValuesDefault Value
methodGET, POSTPOST

The content of the verb element is the URL to the new CXML application to execute. This URL can be an https:// URL to run a remote application resource, a cx:// URL to run a container application resource (see the Container Application Reference and Container Application Blocks reference for more details), or a service:// URL to run a service application resource.

Attribute: method

The HTTP method used for the remote application resource CXML request.