Update a SIP trunk
update_sip_trunkUpdate a SIP trunk by changing only the fields you send, such as host, port, credentials, or caller ID, while leaving other settings untouched.
Instructions
Change a SIP trunk. Only the fields you send are changed.
Requires scope sip_trunks:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record id, e.g. "6a96a3ead6e886d42462dd3e". | |
| host | No | The carrier's SIP host, e.g. "sip.carrier.example". | |
| name | No | A label, e.g. "Twilio" or "My carrier". | |
| port | No | Default 5060 (5061 for tls). | |
| password | No | Stored encrypted and never returned by the API again. Ask the user for it; do not invent one. | |
| username | No | ||
| send_plus | No | Keep the leading "+" when dialling, so the request URI reads sip:+15551234567@host. Most carriers want true. | |
| transport | No | ||
| auth_realm | No | ||
| dial_prefix | No | Digits prepended to every dialled number, if the carrier needs them. | |
| provider_name | No | Free text, e.g. "twilio", "telnyx", "plivo". | |
| default_caller_id | No | Caller id to present when no phone number is chosen. |