Set up a SIP trunk to receive and place calls
This page walks through a complete trunk setup in the order the dashboard needs it. Where skipping a step leaves a visible symptom, the step names it, so you can also use the page as a checklist when a test call fails. For what each setting means, follow the links to SIP trunks, Receiving calls, and Placing calls.
Before you start
- A Bird workspace. Calls, numbers, and trunks belong to one workspace, so do every step in the same one.
- The public addresses of your equipment: the hosts Bird should deliver calls to, and the addresses your equipment sends SIP from.
- For incoming calls, a Bird number in that workspace. For outgoing calls, a caller ID: a Bird number in the workspace or a number you verified.
- A Bird number whose
statusisactive. A number still waiting for its ownership paperwork or its registration carries no incoming or outgoing calls: see File a number's ownership paperwork.
1. Create the trunk
Open Voice > SIP Trunks, select Add new SIP trunk, enter a name, and select Create trunk.
A new trunk carries no calls in either direction until you turn each one on.
2. Turn on inbound calling
On General, turn on DID delivery. Open Gateways in the trunk menu to configure the receiving equipment.
If you skip this step, numbers cannot be pointed at the trunk: the trunk is missing from the number's trunk list.
3. Add your gateways
Open Gateways in the trunk menu. Select Add gateway for each address Bird should deliver calls to.
| Field | What to enter |
|---|---|
| Name | A label you recognize, such as Primary SBC |
| Host | The host name or public IP address of your equipment, without sip: or a user part |
| Port | Leave empty for the transport's default port, or enter the port your equipment listens on |
| Transport | UDP, TCP, or TLS, matching your equipment |
| R-URI user part | How the dialed number is written in the Request-URI. Defaults to E.164 with + |
| Origination format | How the calling number is written. Defaults to E.164 with + |
| Identity header | The header Bird uses when it asserts the caller’s identity. Keep P-Asserted-Identity unless your equipment reads only Remote-Party-ID |
| Priority | The gateway's place in All gateways (automatic): lower numbers ring first, and equal numbers share calls. Defaults to 0 |
If your equipment expects numbers without the leading +, open the format's list and choose Without the plus, or a 00 or 011 international prefix. What a gateway needs explains the number formats.
When a number (DID) routes a call directly to this trunk, Bird uses the gateway’s formatted caller in From for an ordinary call. Bird sends the selected identity header when the value matches the carrier-delivered caller or an E.164 number your workspace may present. For an unchecked gateway identity, Bird omits both P-Asserted-Identity and Remote-Party-ID. A withheld caller has an anonymous From. A Voice Sequence dialing the trunk can supply its own caller.
Before moving traffic, test each presentation on the intended PBX. Use an isolated test route if needed. Test a checked caller with the selected identity header, an ordinary unchecked caller with neither identity header, and a withheld caller with anonymous From. For withheld calls, check that an unchecked fixed identity is absent. If the gateway receives a private assertion, verify that the PBX honors Privacy: id with PAI or privacy=full with RPID. An authorized fixed caller tests only the asserted case. For each test, record whether the call came directly from a number or from a Sequence, the effective gateway and caller settings, the receiving PBX, the headers it received, and how it handled the call.
Bird passes the To header through as the caller's carrier sent it. If your PBX or AI voice platform (such as ElevenLabs) matches trunks using To, open the gateway under Gateways in the dashboard. Select Rewrite To user part and choose the same format as R-URI user part, such as E.164 with +. Bird replaces the user part of To on calls to that gateway. You can change this rewrite only in the dashboard. Updates through the public gateway API keep the saved rewrite.
Your gateway must accept calls from Bird without a SIP Digest challenge, because Bird does not answer one.
4. Choose the group calls hunt
Bird delivers a call to a group of gateways. Every gateway is in All gateways (automatic), which tries them in the order of their Priority on the Gateways tab, lowest first. For failover through it, give the backup gateway a higher Priority number than the primary. If the Groups tab shows no All gateways (automatic), the trunk's saved routing holds a group of its own in its place, and Priority does not order that group; see Use the automatic group.
For other ring times, weights, or only some of the gateways, build your own group: in the Groups tab, select Add group, name it, and use Add gateway to group for each gateway. Fail over and share incoming calls explains each order, the ring time and when the hunt stops.
Select Review and save to save your gateway changes. Then choose which calls use the group in Routing rules.
5. Route incoming number calls to the group
Open Routing rules. In the Inbound default rule for incoming number and Voice Sequence calls, choose Dial and select your Gateway group. To change only incoming number calls, add a rule with the condition caller.type == "inbound" above the inbound fallback and choose the group there. Leave the shared Default route as configured for other callers. To see the groups, select Gateway Group under Dial via.
Select Review and save.
After Bird staff update your trunk, reopen Routing rules to load their changes. If someone saved while you were editing, your draft stays on screen. Copy the edits you want to keep, select Reload, reapply your changes to the latest version and save.
This default route belongs to the trunk. It is separate from the workspace setting Calls to numbers without their own route under Voice > Settings > Numbers, which decides what happens to numbers that have no route of their own.
6. Point your numbers at the trunk
Open Voice > Numbers, open the number, and under Inbound routing choose Deliver to a SIP trunk. Pick the trunk and save.
A number without a route of its own follows the workspace default route, which starts as reject. To send every such number to this trunk at once, set Calls to numbers without their own route to the trunk. See Set a default route.
If you skip this step while the workspace default route is still reject, incoming calls are rejected and the call record's Inbound route shows Reject the leg.
7. Turn on outbound calling and say who may send
On General, turn on SIP trunking. The Connection section shows the trunk's SIP domain. Bird identifies your trunk by this domain, so copy it whole.
Open Authentication and add at least one way to recognize your equipment.
- Allowed IP addresses: the public addresses your equipment sends SIP from. Behind NAT, use the router's public address.
- Allowed API keys: for equipment that answers a Digest challenge, with username
birdand an API key secret as the password.
Until SIP trunking is on, the trunk refuses every call from your equipment. Until the trunk can recognize your equipment, calls are refused before a call record exists. See Controlling who may send calls.
8. Configure your PBX or SBC
On your PBX or SBC:
- Send outgoing calls to the trunk's SIP domain. Put the SIP domain in the Request-URI host. Use port
5060(UDP or TCP) or5061(TLS). If your equipment sends to an IP address, identify the trunk with an RFC 4904 trunk group. - Dial in international format. Put the called number in the Request-URI user part as
+and the country code, for example+442071234567. Do not add a technical prefix. See What Bird expects on the INVITE. - Present an eligible caller ID in the
Fromheader. - Offer G.711 (A-law or µ-law) and send DTMF as RFC 4733 telephone events. The same section of that page covers media.
- Allow Bird's addresses. If your firewall or SBC accepts only listed addresses, allow the signalling addresses for your trunk's region and the media addresses of every site your trunk's media sites include. See SIP trunk network requirements.
9. Turn on the countries you call
Open Voice > Destinations, tick each country you call, and select Save changes. A new workspace starts with none enabled, and a call to a disabled country is rejected with destination_not_enabled. See Voice destinations.
10. Test both directions
- Incoming: call your Bird number from an ordinary phone, then open Voice > Legs in the same workspace.
- Outgoing: place a call from your equipment to any reachable number in an enabled country, presenting your Bird number or a verified number as caller ID. You do not need a second Bird number for this.
- Open each leg. Inbound route says what the number was set to do. A rejected call shows its reason and, when the fix is a setting of yours, a link to that setting. A call that worked shows Answered. Keep the Leg ID if you contact support.
If a call is missing, rejected, or never reaches your equipment, follow Voice troubleshooting, which starts from the symptom.
Next steps
| Page | What it covers |
|---|---|
| SIP trunks | Every trunk setting, authentication, and Digest |
| Receiving calls | Number routes, gateways, groups, and the workspace default route |
| Placing calls | What Bird expects on the INVITE |
| Voice troubleshooting | Diagnosing a call from its symptom |
Related resources
Continue with the documentation, guides and examples for this topic.