The Redirect Element
The Redirect element is used to transfer the control of a call at a differentURL, which then starts processing the new XML response. Any elements after
<Redirect> will not be processed.
Used to specify the HTTP request mode to obtain the Redirect URL.
Allowed values - GET, POST. Defaults to POST
Parameters sent in the redirect request
The phone number of the party that initiated the call along with the country code. If the call is inbound, then it is the caller's caller ID. If the call is outbound i.e. initiated via a request to the API, then this is the phone number you specify as the caller ID.
The phone number of the called party with the country code. If the call is inbound, then it’s your incoming phone number. If the call is outbound, then it’s the phone number you provided to call.
This parameter would contain the string "Redirect".
This contains a unique identifier which identifies the call.
The name of the caller in case its a SIP call. This would be the caller ID in case of a regular PSTN call.
Indicates the direction of the call. In most cases this will be inbound, wherein the call would be in a ringing state. If you are using the Call API, the direction will be outbound, wherein the call will be in an answered state.
Indicates the status of the call. The value is set to either ringing, in- progress,or completed. In case the call is hung up, the CallStatus is set to completed for inbound calls and to completed, busy, failed, timeout or no- answer for outbound calls.