Update
Use this endpoint for the Calls method to modify an active call.
Path parameters
AccountSid
The Project ID that uniquely identifies the Account.
Sid
The unique identifier for the call.
Request
Url
The URL to handle the call.
Method
Whether the request to `Url` is a `GET` or a `POST`.
Allowed values:
Status
The status to update the call to.
Allowed values:
FallbackUrl
The URL SignalWire will request if errors occur.
FallbackMethod
Whether the request to `FallbackUrl` is a `GET` or a `POST`.
Allowed values:
StatusCallback
The URL SignalWire will send webhooks to.
StatusCallbackMethod
Whether the request to `StatusCallback` is a `GET` or a `POST`.
Allowed values:
Response
sid
The unique identifier for the call.
account_sid
The unique identifier for the account that created this call.
date_created
The date, in RFC 2822 GMT format, this call was created.
date_updated
The date, in RFC 2822 GMT format, this call was updated.
parent_call_sid
The unique identifier for the call that created this call.
to
The address that received the call.
formatted_to
The formatted number that received the call.
to_formatted
The formatted number that received the call. Alias for formatted_to.
from
The address that initiated the call.
formatted_from
The formatted number that initiated the call.
from_formatted
The formatted number that initiated the call. Alias for formatted_from.
phone_number_sid
The unique identifier for the phone number.
status
The status of the call.
start_time
The time, in RFC 2822 GMT format, on which the call began.
end_time
The time, in RFC 2822 GMT format, on which the call was terminated.
duration
The duration, in seconds, of the call.
price
The charge for the call.
price_unit
The currency, in ISO 4127 format, for the price of the call.
direction
The direction of the call.
Allowed values:
answered_by
Who/what the call was answered by.
Allowed values:
api_version
The version of the SignalWire API.
forwarded_from
The number this call was forwarded from. Always null.
caller_name
The caller name. Always null.
uri
The URI for the call.
subresource_uris
A Map of available sub-resources.
annotation
The annotation for the call. Always null.
group_sid
The group SID for the call. Always null.
audio_in_mos
The Mean Opinion Score for audio quality (1.0-5.0).
sip_result_code
The SIP result code for the call.
audio_rtt_avg
The average round-trip time for audio in milliseconds.
audio_rtt_min
The minimum round-trip time for audio in milliseconds.
audio_rtt_max
The maximum round-trip time for audio in milliseconds.
audio_out_jitter_min
The minimum outbound audio jitter in milliseconds.
audio_out_jitter_max
The maximum outbound audio jitter in milliseconds.
audio_out_jitter_avg
The average outbound audio jitter in milliseconds.
audio_out_lost
The number of outbound audio packets lost.
Request examples
Update a call
Terminate a call
In this example, we terminate a call in progress by updating the call status to completed.