Guides
Connect via SIP Trunk

Connect via SIP Trunk

Point your own carrier or PBX at dBel over SIP — no number porting, no Twilio account. Bring your carrier rates and route inbound calls straight to an assistant.

Connect via SIP Trunk is a third inbound channel, alongside dBel-provisioned numbers and imported Twilio numbers. Instead of buying or porting a number through us, you point a SIP trunk from your carrier or PBX at your trunk's own SIP address, and inbound calls land on an assistant — the same assistant that handles your phone and web calls, with the same prompt and knowledge base. Its functions work too, except texts: a trunk has no phone number to text from (see Direction in §4). To compare a trunk with a phone number, see Which number can do what.

Use this when you want to keep your existing carrier and rates, connect an on-prem PBX (Asterisk, FreeSWITCH, 3CX), or forward calls from a session border controller (SBC) you already run. It removes the middleman from the call path entirely — there's no Twilio account and no DID to provision on our side.

Inbound trunk vs. transfer destination. This guide is about inbound calls that arrive from your carrier. Sending a live caller to a SIP address is a different feature: a Transfer function with a SIP destination. You don't configure a second trunk for it. The transfer leaves over the trunk that carried the call — for this channel, your own trunk (see Transfers from this trunk).

This guide covers: who can set it up, the create flow, the two ways to authenticate, what to configure on your carrier, routing, billing, and the common pitfalls.

1. Requirements

  • Plan: Growth or higher, on the workspace owner's plan. The channel is gated behind the connectViaSip feature. The check reads the plan of the workspace's owner, not the plan of the person who sets it up. On Free and Seed the option is disabled.
  • Trunk limit: up to 5 trunks per workspace on Growth, and up to 25 on Hypergrowth. Deleted trunks don't count.
  • Role: Admin or Owner. A SIP trunk is critical infrastructure, like phone numbers and webhook secrets. Members can view trunks, but only Admins and Owners can create, edit, attach or delete them.
  • An assistant to answer the calls. Create one first if you haven't; attach it during setup or later.
  • A SIP trunk on your side — a carrier (Telnyx, Bandwidth, your telco) or a PBX/platform you control that can send calls to an external SIP address. It must keep the address's user part (the token before the @) as the called user — see §4.

2. Create a trunk

  1. Go to Dashboard → Phones.
  2. Open the New Phone menu and choose Connect via SIP Trunk.
  3. Fill in the form:
FieldRequiredWhat it does
NameyesA label for you, e.g. Telnyx — Sydney office. Up to 100 characters. Must be unique in the workspace (case doesn't matter).
AssistantnoAnswers calls on this trunk. Optional at create — attach or change it later (see §5).
Allowed IPs / CIDRsone of these twoYour carrier's signaling source IPs (see §3).
Generate SIP credentialsone of these twoUsername + password for digest auth (see §3).
  1. Click Connect trunk. We set up the trunk and show you its connection details. The password (if you generated credentials) is shown once.

You must provide at least one of an IP allowlist or SIP credentials. A trunk with neither would accept calls from anyone — an open relay — so Connect trunk stays disabled until you add one.

At the plan's trunk limit, the create fails with "You've reached the maximum number of SIP trunks for this workspace." Delete a trunk you no longer use. (Hypergrowth raises the limit from 5 to 25.)

3. Authentication — pick at least one

A carrier proves it's allowed to send you calls in one of two ways. Most carriers support IP allowlisting; some prefer digest credentials. You can use both. Then a call must come from an allowlisted IP and pass the digest challenge.

These secure the provider → dBel direction — check your provider's origination / inbound options. IP allowlisting works with any provider: you list their signaling IPs and we accept calls only from those. SIP credentials only help if your provider can be configured to present a digest username/password when it sends calls to us — and many can't. For example, Twilio Elastic SIP Trunking uses credentials only for the other direction (your PBX → Twilio); it originates to your endpoint from fixed IPs and sends no credentials, so a Twilio trunk must use the IP allowlist. That is Twilio's setup today: check Twilio's Elastic SIP Trunking guide and its IP addresses. When unsure, check your provider's "origination" / "send SIP to an external endpoint" documentation for how it authenticates toward your endpoint.

Option A — IP allowlist

Add your carrier's signaling source IP addresses, one per line (or comma-separated). When a call arrives, we accept it only if it originates from one of these. For example:

203.0.113.10
198.51.100.0/24
  • IPv4 only. If your carrier signals from IPv6, use credentials (Option B) instead. Choose that when you create the trunk: the dashboard can't add credentials to an existing IP-only trunk.
  • Specific addresses or narrow ranges. A bare address is treated as a /32. CIDRs must be /16 or narrower — broad blocks (and anything starting 0.0.0.0) are rejected, because a wide range defeats the point of an allowlist.
  • Up to 50 entries.

Find your carrier's signaling IP ranges in their documentation — they publish them, and they can change, so check the provider's current list rather than hard-coding old values.

Option B — SIP credentials

Tick Generate SIP credentials and we create a digest username and password for you. Configure them on your carrier/PBX so that it answers our digest challenge on each SIP INVITE. Don't set the trunk to register with us: dBel accepts calls, not registrations.

Username:  <workspace-id>-<your-token>
Password:  (shown once)

The password is shown once, at create time, and is never retrievable afterward — copy it immediately. The username stays visible in the trunk's edit dialog. To get a fresh password, use Rotate password in the trunk's edit dialog (the new password is shown once).

4. Point your carrier at dBel

After Connect trunk, the dialog shows your trunk's own unique SIP address, plus credentials if you enabled them. The password is shown once:

SIP address:  sip:<your-token>@<host>   ← each trunk has its own address
Username:     <workspace-id>-<your-token>  ← only if you enabled credentials
Password:     ••••••••                     ← shown once

The SIP address stays visible on the SIP Trunks card and in the trunk's edit dialog (the password does not — rotate it if it's lost).

On your carrier/PBX, create an outbound/origination route (the exact name varies by provider) that:

  1. Sends to the full SIP address above as the call's destination. Keep <your-token> (the part before the @) as the called user: we find your trunk by that token. Don't set our host only as an outbound proxy, and make sure your carrier doesn't replace the token with the dialed number — either way the call matches no trunk and is rejected.
  2. Authenticates with what you set up: calls come from an IP on your allowlist, or answer the digest challenge with the username/password. If you set up both, a call must pass both checks.
  3. Routes the calls you want answered to that destination.

Exact steps differ per provider — see your carrier's SIP trunk / origination documentation for where these settings live. The values above are all dBel needs from our side.

A note on TLS / signaling encryption: our endpoint accepts SIP over TLS on port 5061 as well as plain UDP/TCP on 5060 — the transport is chosen by your side. For encrypted signaling, append ;transport=tls to the address:

sip:<your-token>@<host>;transport=tls

We recommend TLS, especially when using SIP credentials — digest auth over cleartext UDP exposes the challenge/response (and the rest of the signaling) in transit. With an IP allowlist only there's no password to leak, but TLS still protects call metadata. We can't require TLS per trunk, so it's enabled by how your carrier dials us.

A note on media encryption: we accept both encrypted (SRTP) and unencrypted (plain RTP) media, because BYO carrier and PBX gear varies — requiring SRTP would reject otherwise-fine equipment. If your carrier doesn't negotiate SRTP, call audio traverses as plain RTP. Use a carrier/transport you trust for sensitive traffic. TLS (signaling) and SRTP (media) are separate — you can have one without the other.

Direction: this channel is inbound only. Calls come from your carrier to your assistant. Your assistant can't place outbound calls through a BYO trunk. It can't send texts through it either, because a trunk has no phone number to text from. An assistant on a trunk texts a caller only if the assistant also has a phone number that can text, and the text then comes from that number (Texting callers). Transferring a live call to a SIP endpoint is a separate feature — see Transfer functions.

Transfers from this trunk

If the assistant on this trunk uses a Transfer function, the transfer is a cold SIP REFER that we send back out your trunk — so your carrier/PBX, not dBel, executes the onward call. Enable these on your side. (For dBel-provisioned and imported-Twilio numbers, dBel turns on items 1 and 2 on the Twilio trunk for you. A BYO carrier is yours to configure.)

  1. Call Transfer (SIP REFER) — lets your carrier act on the REFER and dial the Refer-To. Without it, every transfer is rejected. (Twilio Elastic SIP Trunking: trunk → General settings → enable Call Transfers. See Twilio's call transfer guide.)
  2. PSTN transfer — a separate permission, needed only for transfers to a phone number (tel:). With call transfer on but PSTN transfer off, SIP-endpoint transfers work but phone-number transfers are refused (Twilio returns a 403, error 32218). (Twilio: "Enable PSTN Transfer / Allow Call Transfers to the PSTN.")
  3. Outbound dialing permission for the destination country — for an international phone transfer, your account must be allowed to dial that country, or the leg is refused with a 403. (Twilio: Voice → Settings → Geo permissions. See Twilio's Voice Dialing Geographic Permissions.)

Transferring to a SIP endpoint registered on a provider's SIP domain? On Twilio, a registered address (e.g. sip:alice@you.sip.twilio.com) resolves only for calls in the same account (or its parent account) and the same region as the registration. From another region it fails as "not currently registered" (a 480, Twilio error 32009) even when the device is online. Twilio describes this in Regional SIP Domains. For cross-provider/region SIP transfers, target an IP-addressable SIP URI or a phone number instead.

Exact control names vary by carrier — check your provider's call-transfer / SIP REFER documentation.

5. Routing

Every call on a trunk is answered by the one assistant attached to it. You can attach, change, or detach that assistant any time — from the Assistant column on the SIP Trunks card of the Phones page, or from Attach SIP Trunk on the assistant's page. A trunk with no assistant attached doesn't answer calls until you attach one. To answer different inbound numbers with different assistants, create a separate trunk for each assistant (for example, one per carrier or office). A workspace can have up to 5 trunks on Growth and up to 25 on Hypergrowth.

Per-number (per-DID) routing to multiple assistants on a single trunk isn't available.

6. Billing

BYO SIP minutes count toward your plan's included minutes and your concurrent-call limit — they use the same speech, language-model, and real-time infrastructure as every other call.

What you don't pay is dBel's per-minute carrier charge: those minutes are carried by your carrier, so you're billed by them directly for the telephony, and by us only for the assistant. (Numbers you provision through dBel still carry the per-minute carrier charge.)

7. Managing trunks

Created trunks appear in the SIP Trunks card on the Phones page. The card shows each trunk's name, assistant, SIP address and security (IPs and/or credentials).

Editing — open ⋯ → Edit to rename a trunk, change its IP allowlist, or rotate its SIP password. Allowlist changes apply to the live trunk at once, and its SIP address doesn't change. A rotated password is shown once. To attach or change the assistant, use the Assistant column on the card, or the assistant's page (§5).

Deleting a trunk stops routing immediately. It can't be undone. A new trunk gets a new SIP address (and, with credentials, a new username), so you must point your carrier at it again.

8. Plan changes

If the workspace owner's plan drops below Growth, trunks stop routing and callers hear the short "can't take your call" message — but the trunk and its configuration are kept. Upgrade back to Growth or higher and routing resumes on the next call, with nothing to re-enter.

9. Troubleshooting

Calls don't reach the assistant

The caller hears a short message (for example, "Sorry, we're unable to take your call right now") and the call ends, or nothing answers at all.

  • Plan downgraded below Growth — the channel is gated; re-upgrade to restore routing (§8). The caller hears the short message.
  • Plan minutes used up, or the concurrent-call limit reached — BYO SIP calls count toward both (§6). The caller hears the short message.
  • No assistant attached (or the attached one was deleted). The assistant never joins the call. Attach one on the Phones page, in the Assistant column of the SIP Trunks card, or in Attach SIP Trunk on the assistant's page (see §5).
  • Trunk deleted — a deleted trunk no longer appears on the SIP Trunks card. Create a new one and point your carrier at its new SIP address.

The carrier reports 403 / 404 failures, or calls that are never answered

  • The call's source IP isn't in your allowlist. Then the call matches no trunk, so your carrier usually logs a 404 (the reason text varies) or a call that is never answered, rather than a 403. Confirm your carrier's current signaling IPs and add them. Remember the allowlist is IPv4-only; an IPv6-signaling carrier must use credentials instead.
  • The called user isn't your token. If your carrier sends the dialed number, or uses our host only as an outbound proxy, the call matches no trunk either (§4).
  • Wrong digest credentials — the password is shown only once. If it's lost, rotate it from the trunk's edit dialog to get a fresh one (shown once).

"Connect trunk" stays disabled

The form has no valid IP/CIDR and no credentials. Add at least one valid IP, or tick Generate SIP credentials (§3).

Media / 415 errors or one-way audio

  • A 415 comes from the carrier side, not from us. Make sure your trunk offers G.711 (PCMU or PCMA), and check its SRTP / secure-media setting: we accept both plain RTP and SRTP, but a carrier set to require encryption can refuse.
  • One-way or no audio is typically NAT / symmetric-RTP behavior at the carrier; enable symmetric RTP / latching on your side if available.

A transfer fails (403, "transfer not allowed", or "not registered")

Transfers leave over your trunk, so it's your carrier's transfer settings — see Transfers from this trunk above. Reading the code your carrier returns:

  • 403 to a phone number — PSTN transfer isn't enabled on your trunk (Twilio error 32218), or your account can't dial that country (Geo Permissions). Enable both.
  • 480 "not currently registered" to a SIP address (Twilio error 32009) — the registered endpoint's SIP domain is in a different region (or an unrelated account) from the call carrying the transfer; registrations resolve only within the same account family and region, even when the device is online (Twilio's Regional SIP Domains). Use an IP-addressable SIP URI or a phone number.
  • The exact reason is in your carrier's call logs (Twilio: Elastic SIP Trunking → Logs → Calls → open the child call).

10. FAQ

Do I need a Twilio account or a dBel number? No. That's the point of this channel — you bring your own carrier, with no number provisioned on our side.

Can one trunk send calls to different assistants based on the dialed number? No. One assistant per trunk; create multiple trunks for multiple assistants (up to your plan's trunk limit, §1).

Can I make outbound calls through my trunk? No — the channel is inbound only. Transferring a connected call to a SIP endpoint is supported separately (Transfer functions).

Can I connect over TLS? Yes — append ;transport=tls to the SIP address (TLS listens on port 5061). We recommend it, especially with SIP credentials. See §4.

Is the call media encrypted? Only if your carrier negotiates SRTP. We accept both encrypted and unencrypted media so a wide range of gear works; if encryption end-to-end matters, use a carrier/transport that provides it (§4). TLS (signaling) and SRTP (media) are separate — you can have one without the other.

How do I rotate the SIP password? Use Rotate password in the trunk's edit dialog — the new one is shown once, so copy it then. (Passwords are never retrievable after that.)

Does this work with Zoom Phone or Microsoft Teams? Not directly, and we haven't tested either. Microsoft Teams Direct Routing connects through a Microsoft-certified session border controller (SBC) that you provide — see Microsoft's Plan Direct Routing. For Zoom Phone, check Zoom's own BYOC documentation. If you already run an SBC, treat it like any PBX: send the calls you want answered to your trunk's full SIP address (§4).