Sign inGet Started

bird voice trunks update

Usage

Code example
bird voice trunks update <trunk-id> [flags]

Description

Update a SIP trunk

Change a SIP trunk's caller switches, name, access control and Digest offer. A switch has to be on before its settings can be set, and one update can do both, so this is the operation that clears VoiceTrunkOutboundNotEnabled and VoiceTrunkInboundNotEnabled. The ip_acls, allowed_api_key_ids and digest_algorithms fields each REPLACE their whole list, so read bird voice trunks get first and send the list you want to end up with. An empty array clears an allow list; an empty digest_algorithms array restores the default offer. Turning did_delivery_enabled off returns numbers routed to this trunk to the workspace default inbound route, and resets a default that names it to reject. If an emergency number is attached, clear it in the dashboard before turning did_delivery_enabled off. Turning it back on does not restore those routes, so confirm that change with the user first.

Build the request from flags, a JSON VoiceTrunkUpdate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Code example
# print the body shape (no credentials needed)
bird voice trunks update --example

# the body it prints:
Code example
{
  "allowed_api_key_ids": ["key_01krdgeqcxet5s7t44vh8rt9mg"],
  "did_delivery_enabled": true,
  "digest_algorithms": ["MD5"],
  "ip_acls": [
    {
      "cidr": "203.0.113.0/24",
      "description": "Office network"
    }
  ],
  "media": {
    "encryption": "preferred",
    "sites": ["ap1", "eu1", "us1"]
  },
  "media_bypass": true,
  "name": "Production PBX trunk",
  "sip_trunking_enabled": true,
  "workspace_users_enabled": true
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--nameA human-readable label for this SIP trunk. Mutable, and distinct from the generated wire domain.
--sip-trunking-enabledWhether your PBX may place calls through this trunk. Turning it off stops the allow lists admitting calls at the next call setup and leaves them stored, so turning it back on restores a working trunk. Omit the field to leave it unchanged.
--did-delivery-enabledWhether this trunk may receive calls. Turning it off resets number routes that use this trunk to reject incoming calls. Turning it back on does not restore those routes. Clear an attached emergency number in the dashboard before turning it off. The gateways remain configured. Omit the field to leave it unchanged.
--workspace-users-enabledWhether people in this workspace may place calls through this trunk with a session credential, from the dashboard phone, the CLI or MCP. Turning it off stops those calls at the next call setup without re-issuing anything. Omit the field to leave it unchanged.
--outbound-enabledDeprecated: use sip_trunking_enabled and workspace_users_enabled. true turns on sip_trunking_enabled. false stops every caller placing calls through this trunk. A request that also turns one of those switches the other way is rejected.
--inbound-enabledDeprecated: use did_delivery_enabled. A request that sends both with different values is rejected.
--media-bypassWhether we take ourselves out of the audio path for calls we forward to this trunk. Turning it on takes effect at the next call setup and leaves calls already up untouched. It is an inbound setting, so the trunk must have did_delivery_enabled on; one update can do both. While it is on we cannot record those calls, report their audio quality, or end one because its audio stopped, and your equipment must be reachable for audio from the public internet. Turning it off puts us back in the path at the next call setup. Omit the field to leave it unchanged.
--allowed-api-key-ids <value>…Replaces the trunk's entire set of allowed API keys. When present, exactly these keys may authenticate the trunk over SIP Digest. Each key you ADD must belong to this workspace and hold voice at write level; a key that does not is refused and the whole update is rolled back. A key already on the list that has since lost the permission or expired does not block the update, so you can keep editing the trunk while you put its permission back. A non-empty list turns API-key authentication on; send an empty array to turn it off. Omit the field to leave the allowed keys unchanged.
--digest-algorithms <v1,v2,…>Replaces the Digest hash algorithms this trunk offers, in the order they should be offered. Send ['MD5'] for a PBX that only implements MD5 and rejects or ignores a challenge offering SHA-256 first. Send an empty array to return to the default of ['SHA-256', 'MD5']. The offer is never empty, because a trunk that offered nothing could not be authenticated at all. The list governs clients that authenticate with an API key, and narrowing it also narrows what the trunk accepts from them: an answer using an algorithm no longer offered is rejected. Session credentials, including the dashboard phone's, are always offered MD5 as well and accepted with MD5 or SHA-256. Takes effect on the next call setup; no credential is re-issued. Omit the field to leave the offer unchanged. Possible values: SHA-256, MD5.
--session-credentials-enabledDeprecated: use workspace_users_enabled. A request that sends both with different values is rejected.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird voice trunks createCreate a SIP trunk
bird voice trunks deleteDelete a SIP trunk
bird voice trunks getGet a SIP trunk
bird voice trunks listList SIP trunks

Continue with the documentation, guides and examples for this topic.