VoiceML

Verbs

<Redirect>

Fetch a new VoiceML document and continue the call with it.

Element body

The URL of the VoiceML document to fetch and execute.

Example

<Response>
  <Redirect method="GET">https://app.example.com/next-step</Redirect>
</Response>

Attributes

Attribute Default Behaviour
method POST HTTP method for the document fetch: POST or GET.

Notes

  • Redirect chains are capped at 10 hops; hitting the limit surfaces a clear error rather than looping.
  • Inbound-message documents only: a sip: or sips: body sends a SIP MESSAGE (RFC 3428) instead of fetching a document. The MESSAGE body is the inbound text, with each MMS attachment's Media URL on its own line; it is sent as text/plain;charset=utf-8 with From set to the original sender's number, X-Message-Sid and X-Receiving-Number headers, plus any ?Header=Value URI headers (core SIP headers are refused). The destination is vetted like <Dial><Sip> — a host that resolves to private or platform infrastructure is refused — and method is ignored. The hand-off is recorded as an outbound-reply Message (direction=outbound-reply, From the receiving number, To the SIP URI): queued, then sent on a 2xx response or failed with error code 30001. It is a single delivery attempt, so a failure is final; nothing after the <Redirect> runs.