Standard Plivo Hangup Causes

    Plivo Hangup Causes can be used to identify why & how a call was disconnected. This document contains the list of standard Plivo hangup causes & sources.

    Call Hangup Cause and Hangup Source information is part of Plivo Call Detail Record (CDR). CDRs can be retrieved via API or viewed on the Plivo console.

    Hangup information is also included in callback requests sent on call hangup.

    • For outbound API calls, the hangup information is included in the payload sent to the hangup_url specified in the Make Call API request.
    • For incoming calls, this information is included in the payload sent to the hangup_url specified for the associated Plivo Application.
    • For calls initiated using <Dial> XML, this information is included in the payload of DialHangup events sent to the Dial callbackUrl.

    List of Hangup Sources

    Below is a list of all Hangup Sources:

    Hangup SourceDescription
    CallerThe call was hung up by the caller.
    CalleeThe call was hung up by the individual who was dialed.
    PlivoPlivo initiated the hangup. There are several possible scenarios that can result in Plivo initiating the call hangup. Please go though the Hangup Causes list below for more details.
    CarrierThe hangup signal was received from the remote carrier.
    API RequestThe call was terminated via the Hangup or Cancel Call API request.
    Answer XMLThe call was hung up using the <Hangup> XML element.
    ErrorAn error condition led to the call being terminated.
    UnknownThe source of the hangup could not be resolved.

    List of Hangup Causes

    Below is a list of all Hangup Causes:

    Hangup CauseHangup Cause CodeDescriptionPossible Hangup SourcesApplicable to Call TypesPossible Call States At Hangup
    Unknown0The exact reason for hangup could not be resolved. 

    There is a known bug that Hangup Reason is set to Unknown for calls hung up using the DELETE All Calls API. 
    UnknownOutbound and InboundAny
    Cancelled1000The call was canceled using the Hangup Call API before it was answered.API RequestOutbound and InboundInitiated

    Ringing
    Cancelled (Out Of Credits)1010The call was auto-canceled because the account had run out of credits.PlivoOutbound and InboundAny
    Invalid Destination Address2000The destination number or SIP endpoint was found to be invalid. 

    Please confirm if the destination number is valid and has been specified in E.164 format (eg. +12292442099 or 12292442099).
    Plivo

    Carrier
    Outbound CallsInitiated
    Destination Out Of Service2010The destination number is currently unavailable or out of service.CarrierOutbound CallsInitiated
    Endpoint Not Registered2020The destination SIP endpoint could not be reached since it was found to be unregistered.PlivoOutbound Calls (SIP Calls)Initiated
    Destination Country Barred2030The call was barred as the destination country has been disabled for the Account/Sub-Account that initiated the call. Geo Permissions for your account can be managed from your Plivo console.PlivoOutboundPre-Initiation
    Destination Number Barred2040The call was barred as calls to premium rate numbers have been disabled for the Account/Sub-Account that initiated the call. You can update your preferences with respect to premium number calling here.PlivoOutboundPre-Initiation
    No Answer3000The call was not answered by the called party.Plivo - If the destination is a Plivo SIP endpoint.

    Carrier - If the destination is a PSTN phone number or external SIP endpoint.
    Outbound CallsRinging
    Busy Line3010The call could not be established as a busy signal was received from the called party.Plivo - If the destination is a Plivo SIP endpoint.

    Carrier - If the destination is a PSTN phone number or external SIP endpoint.
    Outbound and InboundInitiated
    Rejected3020The call was rejected by the callee.Callee

    Answer XML - If an inbound call is reject using the <Hangup> XML element.
    Outbound and InboundInitiated

    Ringing
    Normal Hangup4000The call was terminated normally.Caller

    Callee

    API Request - If the call was hung up using the Hangup API

    Answer XML - If the call was hung up using the <Hangup> XML element.
    Outbound and InboundRinging

    Answered
    End Of XML Instructions4010The call was terminated as there were no more XML instructions to execute. 

    This is a normal hangup reason for calls that are being controlled by their own XML. This includes A-Legs (outbound and inbound), and B-Legs that have been transferred to their own XML using the Transfer API.
    PlivoOutbound and InboundAnswered
    Network Error5000A network error resulted in the call being hung up. This is a generic error that covers fatal network conditions and signalling issues. Please contact Plivo Support if you encounter this error for your call flows.ErrorOutbound and InboundAny
    Internal Error5010An error condition within the Plivo system resulted in the call being hung up. Please contact Plivo Support if you encounter this error for your call flows.ErrorOutbound and InboundAny
    Routing Error5020The call could not be routed to the destination address. Please contact Plivo Support if you encounter this error for your call flows.ErrorOutbound and InboundAny
    Scheduled Hangup6000The call was automaticaly terminated based on the max duration configured for the call. 

    For API initiated calls, max call duration can be configured using the 'time_limit' request parameter.

    For calls initiated using the <Dial> XML element, max call duration can be configured using the 'timeLimit' attribute. This property defaults to 4 hours when not specified.
    PlivoOutbound CallsAnswered
    Ring Timeout Reached6010The call was automatically terminated as it was not answered within the ring timeout value configured for the call.

    For API initiated calls, max ring time can be configured using the 'ring_timeout' request parameter. This property defaults to 120 seconds when not specified.

    For calls initiated using the <Dial> XML element, max ring time can be configured using the 'timeout' attribute. This property defaults to 120 seconds when not specified.
    PlivoOutbound CallsInitiated

    Ringing
    Error Reaching Answer URL7011A non 2XX HTTP response was encountered while fetching XML instructions from the specified Answer URL.ErrorOutbound and InboundInitiated

    Ringing
    Error Reaching Action URL7012A non 2XX HTTP response was encountered while fetching XML instructions from the specified Action URL.

    Note that a non 2XX response results in call termination only if the 'redirect' attribute has been set to 'True'.
    ErrorOutbound and InboundAnswered
    Error Reaching Transfer URL7013A non 2XX HTTP response was encountered while fetching XML instructions from the specified Transfer URL.ErrorOutbound and InboundRinging

    Answered
    Error Reaching Redirect URL7014A non 2XX HTTP response was encountered while fetching XML instructions from the specified Redirect URL.ErrorOutbound and InboundRinging

    Answered
    Invalid Action URL7022The Action URL specified for the XML element is not a valid URL. Please ensure the URL begins with HTTP or HTTPS.

    Note that an invalid Action URL results in call termination only if the 'redirect' attribute has been set to 'True'.
    ErrorOutbound and InboundAnswered
    Invalid Transfer URL7023The URL specified in the Transfer API request is not a valid URL. Please ensure the URL begins with HTTP or HTTPS.ErrorOutbound and InboundRinging

    Answered
    Invalid Redirect URL7024The URL specified in the <Redirect> XML element is not a valid URL. Please ensure the URL begins with HTTP or HTTPS.ErrorOutbound and InboundRinging

    Answered
    Invalid Method For Action URL7032An unsupported HTTP method was specified for the Action URL. Only GET and POST methods are supported.ErrorOutbound and InboundAnswered
    Invalid Method For Transfer URL7033An unsupported HTTP method was specified for the Transfer URL. Only GET and POST methods are supported.ErrorOutbound and InboundRinging

    Answered
    Invalid Method For Redirect URL7034An unsupported HTTP method was specified for the Redirect URL. Only GET and POST methods are supported.ErrorOutbound and InboundRinging

    Answered
    Invalid Answer XML8011The XML returned by the Answer URL is not a valid Plivo XML. View debug logs for the call on your Plivo console for more information.ErrorOutbound and InboundRinging

    Answered
    Invalid Action XML8012The XML returned by the Action URL is not a valid Plivo XML. View debug logs for the call on your Plivo console for more information.

    Note that an invalid XML results in call termination only if the 'redirect' attribute has been set to 'True'.
    ErrorOutbound and InboundAnswered
    Invalid Transfer XML8013The XML returned by the Transfer URL is not a valid Plivo XML. View debug logs for the call on your Plivo console for more information.ErrorOutbound and InboundRinging

    Answered
    Invalid Redirect XML8014The XML returned by the Redirect URL is not a valid Plivo XML. View debug logs for the call on your Plivo console for more information.ErrorOutbound and InboundRinging

    Answered
    Lost Race9000The call was hung up by Plivo because another B-Leg that was dialed in parallel accepted the call first.

    This is a common hang up reason in simultaneous dial scenarios where multiple destinations are tried in parallel, the first person to accept the call is connected with the A-Leg, and other calls are immediately terminated.
    PlivoOutbound (Dial XML)Any
    Machine Detected9100It was detected that the call was answered by an answering machine. 

    This hangup reason is possible only for API initiated calls having the machine_detection request parameter set to 'hangup'.
    API RequestOutbound (API Calls)Answered