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
| Name | Description |
|---|---|
--body-file | Read the JSON request body from this file; "-" reads stdin |
--example | Print a complete example request body, then exit |
--dry-run | Print the resolved request without sending it, then exit |
--idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
--name | A human-readable label for this SIP trunk. Mutable, and distinct from the generated wire domain. (required; or in --body-file) |
--sip-trunking-enabled | Whether 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-enabled | Whether 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-enabled | Whether 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-enabled | Deprecated: use sip_trunking_enabled. true turns on sip_trunking_enabled; a request that also sends sip_trunking_enabled: false is rejected. |
--inbound-enabled | Deprecated: use did_delivery_enabled. A request that sends both with different values is rejected. |
--media-bypass | Whether 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-enabled | Deprecated: use workspace_users_enabled. A request that sends both with different values is rejected. |
--response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
bird voice trunks delete | Delete a SIP trunk |
bird voice trunks get | Get a SIP trunk |
bird voice trunks list | List SIP trunks |
bird voice trunks update | Update a SIP trunk |
Related resources
Continue with the documentation, guides and examples for this topic.