SIP Trunking Explained: Channels, Numbers and Switching
A SIP trunk is a service that connects a business phone system (a PBX, on your premises or running as software) to the public telephone network over an IP connection. It does the job that analog lines or digital trunk circuits used to do: it brings in calls to your numbers and carries your outgoing calls to any phone. This page explains what a trunk is made of, how to size it, what happens to your numbers and emergency locations, and what to check before switching.
What a SIP trunk is
The provider gives your phone system a SIP connection and a set of telephone numbers. Calls to those numbers arrive at your PBX as SIP calls, and the PBX routes them to extensions, ring groups or menus; outgoing calls go the other way. Nothing on the desks changes: the trunk sits between the PBX and the provider.
The connection is usually set up in one of two ways, depending on the provider:
- Registration: the PBX logs in to the provider with a username and password, like a SIP phone does.
- IP authentication: the provider accepts calls only from your fixed public IP address, and sends calls only to it.
Many businesses put a firewall with SIP handling or a session border controller at the edge, so that only the provider's traffic reaches the PBX. For how SIP itself works, see SIP basics.
Channels and concurrent calls
A trunk has no physical line per call. Its limits are the number of channels (calls at the same time, incoming and outgoing together) in your plan and the bandwidth of your connection. When every channel is busy, the next call gets a busy signal or whatever overflow the provider offers, which on some plans is extra channels at an extra charge.
To size the channels, start from your own data. Your current phone system's reports usually show the peak number of simultaneous calls; take the busiest days of a normal month, and add the calls that a new service, campaign or site will bring. If you only know busy-hour traffic, the Erlang B formula, which ITU-T Recommendation E.520 uses for dimensioning circuit groups, gives the share of calls that find every channel busy: 60 calls in the busiest hour at an average of 3 minutes is 3 Erlangs, and Erlang B gives about 2.2% of calls blocked with 7 channels and about 0.8% with 8. Erlang B assumes a blocked call is lost, not queued; queues are an Erlang C question (see Erlang C explained).
Each channel also needs bandwidth in both directions. With the G.711 codec in 20 ms packets, one call is about 80 kbit/s each way before link overhead (the arithmetic is in what is VoIP), so 8 channels need roughly 640 kbit/s upstream and downstream plus overhead, in addition to everything else the connection carries.
Numbers and porting
You can take new numbers from the trunk provider, or move (port) your existing numbers to it. Porting is where switches go wrong, so treat it as a project:
- List every number you have: the main number, direct-dial numbers, numbers that only forward somewhere, and the lines used by fax machines, alarm panels and lift phones.
- Keep the old service running until the port has completed and you have tested every number on the new trunk. Cancelling first can lose a number.
- Porting rules and timings vary by country and carrier. Ask the new provider what it needs (usually an account holder name, address and account number exactly as the old carrier has them) and for a confirmed port date.
- Ask what number format the provider expects for caller ID and routing, for example full international format under ITU-T E.164, the international numbering plan.
Present only numbers you own or are authorized to use as caller ID. In the United States, voice service providers must, with limited exceptions, authenticate caller ID on their IP networks using the STIR/SHAKEN framework (47 CFR 64.6301); authentication is about the calling number, not a judgment of whether the call is wanted. Rules on caller ID vary by country and change; outbound calling rules covers caller ID and consent in general terms.
Emergency calls and locations
Dial the local emergency number: 911 in the United States, 112 across the European Union, 999 or 112 in the United Kingdom. On a trunk, the emergency service learns where the caller is from the location the provider holds for the calling number, so every number that can call out needs the right address, and a business with several sites must send each site's own number on its emergency calls. In the United States, the FCC's multi-line telephone system rules (47 CFR 9.16, implementing Kari's Law and RAY BAUM'S Act) require that users can dial 911 directly, without a prefix such as 9, that the system notify a central point such as a front desk when someone does (where the system can be configured to), and that a dispatchable location (street address plus details such as floor or suite) is sent with the call. Never call an emergency number to test a trunk: ask the provider how to test, and if you dial by mistake, stay on the line and tell the call-taker. Rules vary and change; see emergency calling on VoIP.
What to check before switching
- Codecs. Which codecs the provider supports, and whether your PBX and phones share one with it, so calls are not converted (transcoded) along the way.
- Fax. Fax over IP is unreliable without support for it. Ask whether the provider supports ITU-T T.38 (real-time fax over IP networks) or another method, and test with your own fax machine.
- Alarm, lift and door lines. Check with the alarm or lift company before moving those lines (see analog phones over VoIP).
- Failover. What happens to incoming calls when your internet connection or PBX is down: can the provider send them to another site or a mobile number automatically? Do you need a second internet connection?
- Fraud controls. IP allow-lists, blocks on international and premium-rate destinations you do not call, spending limits and alerts. Use strong, unique credentials, do not expose the PBX's SIP service to the whole internet, and keep its software updated. Toll fraud is billed to you.
- Billing. Per-channel or per-minute pricing, what minutes are included, the billing increment (per second, per 6 seconds or per minute), connection fees, minimum charges and international rates. How call charges work explains each; work out the cost of typical calls from your own records with the call cost calculator and international calls with the international call cost calculator, using the rates in the quote.
- Reports and support. Call detail records you can export, and support hours that match yours.
- Contract and exit. Minimum term, notice period, and confirmation that the numbers stay yours to port away.
Testing before cutover
- Call every number from an outside phone and check where it rings.
- Call out from each site and check the caller ID that appears.
- Check that keypad presses work in your own menu and in other companies' menus.
- Test fax, alarm and lift lines with their suppliers.
- Confirm each number's emergency location with the provider.
- Unplug the trunk's internet connection and check that failover sends calls where you expect.
For the wider move of phones, users and call flows, see moving to UCaaS without callers noticing.