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
ATTRIBUTE | DESCRIPTION |
AccountSid | A unique identifier for the account generating this call. |
CallDuration | A call duration in seconds |
CallSid | A unique identifier for this call, generated by Telnyx. |
CallSidLegacy | A unique identifier for the call sent to keep backward compatibility. |
CallStatus | A descriptive status for the call. Possible options: completed , no-answer , busy , failed or canceled . |
CallbackSource | A 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. |
Timestamp | The timestamp when the event was fired, given as UTC in RFC 2822 format. |
CallbackSource | A 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 . |
From | The outbound caller number. |
To | The inbound callee number. |
SequenceNumber | A sequence number ordering the multiple callbacks received. The first callback has the lowest, and the last callback the highest. |