> This page is for Compatibility API.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# Voice status callback

POST 

Payload sent by SignalWire to your Voice Status Callback URL when the status of a call changes.

Configure this callback using the `StatusCallback` and `StatusCallbackEvent` parameters when
[creating a call via the API](/docs/compatibility-api/rest/calls/create-a-call) or using
[Dial](/docs/compatibility-api/cxml/reference/voice/dial) with
[Number](/docs/compatibility-api/cxml/reference/voice/number) or
[SIP](/docs/compatibility-api/cxml/reference/voice/sip).
A `<Conference>` noun's `statusCallback` receives the
[Conference status callback](/docs/compatibility-api/rest/conferences/webhooks/conference-status-callback) instead.

Use `StatusCallbackEvent` to receive every call progress event — not just the final status —
along with current call state and all parameters below.

SignalWire sends the parameters as a form-encoded (`application/x-www-form-urlencoded`) POST body, not as JSON.
When `StatusCallbackMethod` is `GET`, they are sent as query parameters instead.
Callbacks for the same call can arrive out of order. `Timestamp` records when each event occurred.

Status callbacks are advisory, best-effort notifications — delivery can be delayed or fail silently, so don't gate time-critical actions on receiving one. See [Status callback reliability](/docs/platform/webhooks#status-callback-reliability).

Reference: https://signalwire.com/docs/compatibility-api/rest/calls/webhooks/voice-status-callback

## Request

### Payload

- `AccountSid` (string, required) — The unique ID of the project this call is associated with.
- `ApiVersion` (string, required) — The version of the SignalWire API. Incoming calls use the API version placed on the number called. Outgoing calls use the version of the REST API request.
- `CallbackSource` (string, required) — The source of the status callback.
- `CallSid` (string, required) — A unique identifier for the call.
- `CallStatus` (enum, required) — The status of the call. | Status | Description | |--------|-------------| | `initiated` | The initial dial has begun. | | `ringing` | The call is ringing. | | `answered` | The call was answered. Sent only when `StatusCallbackEvent` includes `answered`, and followed by an `in-progress` callback. | | `in-progress` | The call was answered and is in progress. | | `queued` | The call is ready and in line to initiate. | | `failed` | The call could not be completed. Usually occurs when the phone number does not exist. SignalWire also stops a call created through the REST API before dialing it when its caller ID is on the Do Not Originate registry, a spam rule blocks it, it exceeds the outbound call rate limit (`ErrorCode` `20429`), no endpoint is registered to receive it, or a temporary platform error interrupts it. Retrying usually succeeds after a temporary error. | | `busy` | The caller encountered a busy signal. | | `no-answer` | The call ended without an answer. | | `completed` | The call was answered and ended normally. | | `canceled` | The REST API canceled the call while it was ringing or queued. |
  - Allowed values: `initiated`, `ringing`, `answered`, `in-progress`, `queued`, `failed`, `busy`, `no-answer`, `completed`, `canceled`
- `Direction` (enum, required) — The direction of the call. - `outbound-dial`: calls launched through the Dial verb. - `outbound-api`: calls launched through the REST API. - `inbound`: inbound calls.
  - Allowed values: `outbound-dial`, `outbound-api`, `inbound`
- `From` (string, required) — The phone number that sent this call, in E.164 format.
- `Timestamp` (string, required) — The timestamp, in RFC 2822 format, of when the event occurred.
- `To` (string, required) — The phone number of the call recipient, in E.164 format.
- `AudioInAveragePtime` (double, optional) — The average time between packets for the inbound stream.
- `AudioInDtmfPacketCount` (integer, optional) — The number of DTMF packets in the inbound media stream.
- `AudioInFlushPacketCount` (integer, optional) — The number of incoming packets removed from the jitter buffer due to buffer overflow or underflow, causing these packets to be discarded or lost.
- `AudioInJitterMaxVariance` (double, optional) — The largest variance measured in the time between incoming audio packets, in milliseconds squared.
- `AudioInJitterMinVariance` (double, optional) — The smallest variance measured in the time between incoming audio packets, in milliseconds squared.
- `AudioInLargestJbSize` (integer, optional) — The largest jitter buffer size recorded for incoming audio RTP packets during the session.
- `AudioInMos` (double, optional) — The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5, the score for a call with no lost or late packets. Sent with up to two decimal places, such as `4.37`. A whole-number score is sent with one decimal place, such as `4.0`.
- `AudioInMediaPacketCount` (integer, optional) — The number of audio packets received in the inbound media stream.
- `AudioInSkipPacketCount` (integer, optional) — Increased with every packet not received at a given ptime. Increases with every lost packet from the inbound stream.
- `AudioOutDtmfPacketCount` (integer, optional) — The total number of DTMF packets generated in the outbound media stream.
- `AudioOutJitterAvg` (double, optional) — The average jitter, in milliseconds, of the outgoing audio stream.
- `AudioOutJitterMax` (double, optional) — The maximum jitter, in milliseconds, of the outgoing audio stream.
- `AudioOutJitterMin` (double, optional) — The minimum jitter, in milliseconds, of the outgoing audio stream.
- `AudioOutLost` (integer, optional) — The number of outgoing audio RTP packets reported lost.
- `AudioOutMediaPacketCount` (integer, optional) — The number of audio packets sent in the outbound media stream.
- `AudioRttAvg` (double, optional) — The average audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
- `AudioRttMax` (double, optional) — The maximum audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
- `AudioRttMin` (double, optional) — The minimum audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
- `CallDuration` (integer, optional) — The duration, in seconds, of the finished call, from when the call started ringing to when it ended, rounded up to the next whole second. Because it includes ringing time, it's longer than the time the call was connected and usually longer than a recording of the call. Only present on the `completed` event.
- `ErrorCode` (string, optional) — The code for why the call failed, when SignalWire has one. `20429` means the call exceeded the outbound call rate limit. See [Error codes](/docs/compatibility-api/rest/error-codes#20429).
- `ErrorMessage` (string, optional) — The description of `ErrorCode`.
- `HangupBy` (string, optional) — The `From` or `To` value of the party that ended the call, as indicated by `HangupDirection`. Present once the call has ended.
- `HangupDirection` (string, optional) — Which side ended the call. Present once the call has ended. - `inbound`: the remote party hung up, so `HangupBy` is `From` on an inbound call and `To` on an outbound call. - `outbound`: the call was ended from the SignalWire side, so `HangupBy` is `To` on an inbound call and `From` on an outbound call.
- `ParentCallSid` (string, optional) — A unique identifier for the call that created this call.
- `SipCallId` (string, optional) — The SIP `Call-ID` of the call.
- `SipInviteResultPhrase` (string, optional) — A textual description of the result of the SIP INVITE request, indicating success or failure with additional details.
- `SipResultCode` (string, optional) — The numeric SIP response code received for the INVITE request, indicating the outcome of the call attempt. See the [list of SIP response codes](https://en.wikipedia.org/wiki/List_of_SIP_response_codes) for possible values.