Voice status callback
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 or using
Dial with
Number or
SIP.
A <Conference> noun’s statusCallback receives the
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.
Payload
The status of the call.
The direction of the call.
outbound-dial: calls launched through the Dial verb.outbound-api: calls launched through the REST API.inbound: inbound calls.
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.
The average audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
The maximum audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
The minimum audio round-trip time, in milliseconds, measured to the nearest 10 milliseconds.
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.
The code for why the call failed, when SignalWire has one. 20429 means the call exceeded the outbound call rate limit. See Error codes.
The description of ErrorCode.
The From or To value of the party that ended the call, as indicated by HangupDirection. Present once the call has ended.
Which side ended the call. Present once the call has ended.
inbound: the remote party hung up, soHangupByisFromon an inbound call andToon an outbound call.outbound: the call was ended from the SignalWire side, soHangupByisToon an inbound call andFromon an outbound call.
The SIP Call-ID of the call.
The numeric SIP response code received for the INVITE request, indicating the outcome of the call attempt. See the list of SIP response codes for possible values.