update
Replace a SIP endpoint resource. Uses PUT for full replacement.
Path parameters
id
Unique ID of the SIP endpoint.
Request
calling_handler_resource_id
If `call_handler` is set to `resource`, this field will contain the id of the set resouce. Will be `null` otherwise.
username
The username of the Sip Endpoint
caller_id
The caller ID that will showup when dialing from this Sip Endpoint
send_as
The Sip username that will show up on the calle's side. Overrides the username.
ciphers
Ciphers that can be enabled for calls on this Sip Endpoint.
codecs
Codecs that can be enabled for calls on this Sip Endpoint.
encryption
The set encryption type on the Sip Endpoint.
call_handler
Specify how the SIP endpoint will handle outbound calls.
- **default**: The SIP endpoint will pull the outbound policy setting from the [SIP Profile Settings](https://my.signalwire.com?page=sip_profile/edit). This allows centralized management of outbound call behavior across multiple endpoints from a single configuration.
- **passthrough**: The SIP endpoint will be allowed to dial PSTN numbers. This permits outbound calling to traditional phone numbers without restrictions.
- **block-pstn**: The SIP endpoint will be blocked from dialing PSTN numbers. Use this to restrict the endpoint from initiating calls to the public telephone network.
- **resource**: Outbound calls from this SIP endpoint will dial the specified resource and execute its instructions. Requires setting `calling_handler_resource_id` to a valid resource. This enables custom call handling workflows for outbound calls.
Response
type
A string representation of the type of object this record is.
id
The unique identifier of the SIP endpoint.
username
The username for the SIP endpoint.
caller_id
Friendly Caller ID used as the CNAM when dialing a phone number or the From when dialing another SIP Endpoint.
send_as
When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
ciphers
A list of encryption ciphers this endpoint will support.
codecs
A list of codecs this endpoint will support.
encryption
Whether connections to this endpoint require encryption or if encryption is optional.
call_handler
What type of handler you want to run on inbound calls.
calling_handler_resource_id
The unique identifier of the calling handler resource.
call_request_url
A string representing the LaML URL to access when a call is received. This is only used (and required) when call_handler is set to laml_webhooks.
call_request_method
A string representing the HTTP method to use with call_request_url. Valid values are GET and POST.
call_fallback_url
A string representing the LaML URL to access when the call to call_request_url fails. This is only used (and required) when call_handler is set to laml_webhooks.
call_fallback_method
A string representing the HTTP method to use with call_fallback_url. Valid values are GET and POST.
call_status_callback_url
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to laml_webhooks.
call_status_callback_method
A string representing the HTTP method to use with call_status_callback_url. Valid values are GET and POST.
call_laml_application_id
A string representing the ID of the LaML application to forward incoming calls to. This is only used (and required) when call_handler is set to laml_application.
call_dialogflow_agent_id
A string representing the ID of the Dialogflow agent to forward incoming calls to. This is only used (and required) when call_handler is set to dialogflow.
call_relay_topic
A string representing the Relay topic to forward incoming calls to. This is only used (and required) when call_handler is set to relay_topic.
call_relay_topic_status_callback_url
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_topic.
call_relay_context
A string representing the Relay context to forward incoming calls to. This is only used (and required) when call_handler is set to relay_context.
call_relay_context_status_callback_url
A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_context.
call_relay_application
A string representing the Relay application to forward incoming calls to. This is only used (and required) when call_handler is set to relay_application.
call_video_room_id
A string representing the ID of the Video Room to forward incoming calls to. This is only used (and required) when call_handler is set to video_room.
call_relay_script_url
A string representing a URL of a SWML script to respond to incoming calls. This is only used (and required) when call_handler is set to relay_script.
Response Example
Response