Skip to main content

Hangup

Ends the call

Examples

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Hangup/>
</Response>

Expected callbacks

The following callback will be sent to the webhook url defined on the connection level:

completed

{
"AccountSid": "cb6cfbbc-eb00-41af-a3f3-0d7b32009e4b",
"CallDuration": "2",
"CallSid": "v2:7V3r4VFCGLTzKLOveE0-7vM9dX17-NRQgU1byo-uuOIX9JcDadLLKw",
"CallSidLegacy": "v2:7V3r4VFCGLTzKLOveE0-7vM9dX17-NRQgU1byo-uuOIX9JcDadLLKw",
"CallStatus": "completed",
"CallbackSource": "call-progress-events",
"From": "+18445931290",
"HangupSource": "callee",
"SequenceNumber": "0",
"Timestamp": "2021-04-28 21:51:18.731479Z",
"To": "+13122010055"
}

Status callback attributes

ATTRIBUTEDESCRIPTION
AccountSidA unique identifier for the account generating this call.
CallDurationA call duration in seconds
CallSidA unique identifier for this call, generated by Telnyx.
CallSidLegacyA unique identifier for the call sent to keep backward compatibility.
CallStatusA descriptive status for the call. Possible options: completed, no-answer, busy, failed or canceled.
CallbackSourceA string that describes the source of the webhook. This is provided to help disambiguate why the webhook was made. On Status Callbacks, this value is always call-progress-events.
TimestampThe timestamp when the event was fired, given as UTC in RFC 2822 format.
CallbackSourceA string that describes the source of the webhook. This is provided to help disambiguate why the webhook was made. On Status Callbacks, this value is always call-progress-events.
FromThe outbound caller number.
ToThe inbound callee number.
SequenceNumberA sequence number ordering the multiple callbacks received. The first callback has the lowest, and the last callback the highest.