Update SIP profile
Changes the project-wide defaults that SIP Credentials use for registration, media, security, and outbound calling. This updates the project’s single SIP Profile; it does not create or update an individual SIP Credential or SIP Gateway.
Omitted fields keep their current values. If you send back a body read from Get SIP profile, remove default_send_as or set it to null when it reads random, because random is not accepted as input.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Request
String representing the domain_identifier portion of the profile. Must be unique across your project.
A list of codecs this profile will support. Currently supported values are: OPUS, G722, PCMU, PCMA, VP8, H264.
A list of encryption ciphers this profile will support. Currently supported values are: AEAD_AES_256_GCM_8, AES_256_CM_HMAC_SHA1_80, AES_CM_128_HMAC_SHA1_80, AES_256_CM_HMAC_SHA1_32, AES_CM_128_HMAC_SHA1_32.
How calls placed by a SIP endpoint whose call_handler is default are handled. passthrough
connects the call to the dialed destination, including PSTN numbers, and block-pstn does the same
but blocks calls to PSTN numbers. Omit it to keep the current value; null is rejected with 422.
The E.164 number SIP endpoints that use this profile send as their From number when dialing PSTN
phone numbers. It must be a number purchased or verified in the project. Send null or an empty
string to clear it so that a purchased or verified number from the project is chosen. The value
random, which Get SIP profile returns when no
number is set, is not accepted here and returns 422; to keep the current setting, omit the field.
Response
String representing the domain_identifier portion of the profile. Must be unique across your project.
A list of codecs this profile will support. Currently supported values are: OPUS, G722, PCMU, PCMA, VP8, H264.
A list of encryption ciphers this profile will support. Currently supported values are: AEAD_AES_256_GCM_8, AES_256_CM_HMAC_SHA1_80, AES_CM_128_HMAC_SHA1_80, AES_256_CM_HMAC_SHA1_32, AES_CM_128_HMAC_SHA1_32.
How calls placed by a SIP endpoint whose call_handler is default are handled. passthrough
connects the call to the dialed destination, including PSTN numbers, and block-pstn does the same
but blocks calls to PSTN numbers.
The E.164 number SIP endpoints that use this profile send as their From number when dialing PSTN
phone numbers. Returns random when no number is set, meaning a purchased or verified number from
the project is chosen. random is only a response value: to clear the number with
Update SIP profile, send null or an empty string.