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.

    Attributes

    method string

    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

    From string

    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.

    To string

    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.

    Event string

    This parameter would contain the string "Redirect".

    CallUUID string

    This contains a unique identifier which identifies the call.

    CallerName string

    The name of the caller in case its a SIP call. This would be the caller ID in case of a regular PSTN call.

    Direction string

    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.

    CallStatus string

    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.