Update SIP trunk
update_sip_trunkModify settings on an existing Vobiz SIP trunk: attach credentials or IP ACLs, set outbound routing, adjust limits, enable recording or webhooks, or disable it without deleting.
Instructions
Change settings of an existing Vobiz SIP trunk: only the fields you pass change; trunk_id and trunk_domain never change. Use it to attach authentication (credential_uuid, ipacl_uuid), set outbound routing (primary_uri_uuid, fallback_uri_uuid), adjust limits, turn on recording or the event webhook, or pause a trunk with trunk_status: disabled instead of deleting it. Read current values first with get_sip_trunk; for a new trunk use create_sip_trunk. Returns the updated trunk object with credential fields redacted. An unknown trunk_id raises not_found. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name of the trunk, 1-100 characters. | |
| secure | No | true encrypts media with SRTP (Vobiz default false). Signalling encryption is chosen with transport: tls. | |
| confirm | Yes | Must be true, set only after the user explicitly approved: changing this SIP trunk. If your client supports MCP elicitation, the server asks the user to approve directly and this flag is not relied on; otherwise it is your attestation that the user approved. | |
| trunk_id | Yes | SIP trunk UUID: the trunk_id returned by list_sip_trunks, get_sip_trunk or create_sip_trunk. | |
| cps_limit | No | Maximum new calls per second (flood protection), 1-100 (Vobiz default 2). Independent of concurrent_calls_limit; the enforced CPS is the account-level limit. | |
| recording | No | true records every call on the trunk (Vobiz default false). Required for enable_transcription and recording_webhook_enabled to have any effect. | |
| transport | No | SIP signalling transport: udp (Vobiz default), tcp or tls (encrypted signalling). | |
| ipacl_uuid | No | UUID of an IP ACL entry (id from list_ip_acl_entries or add_ip_acl_entry) so SIP from that address is accepted without a password. May be set together with credential_uuid. | |
| description | No | Free-text note on the trunk's purpose, up to 1000 characters. | |
| webhook_url | No | Public https URL (max 500 characters) that receives CallInitiated and Hangup events for calls on this trunk; private and local hosts are rejected. | |
| trunk_status | No | enabled or disabled. A disabled trunk keeps its configuration, credentials and routing but handles no calls; Vobiz reports the state as active/inactive on the trunk object. | |
| webhook_method | No | HTTP method for webhook_url deliveries: POST (Vobiz default) or GET. | |
| credential_uuid | No | UUID of a trunk credential (id from list_trunk_credentials or create_trunk_credential) for SIP digest authentication of this trunk's peer. | |
| trunk_direction | No | Which calls the trunk carries: inbound (to your numbers), outbound (from your PBX) or both. | |
| primary_uri_uuid | No | UUID of the origination URI (id from list_origination_uris or create_origination_uri) that outbound calls are sent to first; failover order is primary, then fallback. | |
| fallback_uri_uuid | No | UUID of the origination URI tried when the primary one fails. | |
| inbound_destination | No | Destination inbound calls on this trunk are delivered to (inbound trunks), up to 255 characters, in the form your Vobiz trunk setup uses. | |
| enable_transcription | No | true transcribes recordings automatically (Vobiz default false); only effective while recording is true. | |
| concurrent_calls_limit | No | Maximum simultaneous calls on the trunk, 1-1000 (Vobiz default 10). Stored on the trunk; the enforced concurrency is the account-level limit. | |
| recording_webhook_enabled | No | true also sends a recording.completed event to webhook_url after each recording is saved (Vobiz default false); needs recording true and a webhook_url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| trunk | No | The trunk after the change. | |
| updated | No | True when the change was applied by this call. | |
| http_status | No | HTTP status Vobiz answered with. |