Sign inGet Started

bird voice trunks create

Usage

Code example
bird voice trunks create [flags]

Description

Create a SIP trunk

Create a new SIP trunk for the workspace. Returns the Bird-assigned domain to configure in the customer's PBX or SIP client.

Build the request from flags, a JSON VoiceTrunkCreate 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 create --example

# the body it prints:
Code example
{
  "digest_algorithms": ["MD5"],
  "name": "Production PBX trunk",
  "sip_trunking_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. (required; or in --body-file)
--sip-trunking-enabledWhether your PBX may place calls through the new trunk. Omit it to create a trunk that carries no calls yet, and turn on what you need once you know what the trunk is for.
--did-delivery-enabledWhether the new trunk may receive calls. A trunk receives no calls until it also has at least one gateway and at least one number, both added after create.
--workspace-users-enabledWhether people in this workspace may place calls through the new trunk with a session credential, from the dashboard phone, the CLI or MCP. Omit it for a trunk reached only by a PBX.
--outbound-enabledDeprecated: use sip_trunking_enabled. true turns on sip_trunking_enabled; a request that also sends sip_trunking_enabled: false 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. Omit it to create the trunk with this off, which is what suits equipment behind NAT and any account that wants call recording. It is an inbound setting, so true is accepted only alongside did_delivery_enabled: true; false is always accepted. It can be changed later.
--digest-algorithms <v1,v2,…>The Digest hash algorithms to offer, in the order they should be offered. Omit this to use the default of ['SHA-256', 'MD5'], which suits most equipment. Send ['MD5'] for a PBX that only implements MD5 and rejects or ignores a challenge offering SHA-256 first. This governs clients that authenticate with an API key. Session credentials, including the dashboard phone's, are always offered MD5 as well and accepted with MD5 or SHA-256. It applies to calls the trunk places, so send it alongside sip_trunking_enabled or workspace_users_enabled set to true. This can be changed later without re-issuing credentials. 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 deleteDelete a SIP trunk
bird voice trunks getGet a SIP trunk
bird voice trunks listList SIP trunks
bird voice trunks updateUpdate a SIP trunk

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