SIP Trunk Channels vs DIDs: How Many Do You Need?
In sip trunk channels vs DIDs, channels are simultaneous calls and DIDs are just phone numbers, so only channels set capacity. Size them from peak concurrent calls (Erlang B or CDR data) plus 20 to 30% headroom.
- A channel is one active call at the trunk, inbound and outbound combined, so 10 channels means 10 simultaneous calls in total.
- DIDs are only numbers: 50 DIDs on 2 channels still allows just 2 calls at once.
- Forwarded, transferred, ring-group and Follow Me calls can use two or more trunk channels per caller.
- Erlang B turns busy-hour calls x average minutes / 60 into a channel count for 1 to 2% blocking; 4 Erlangs needs 10 channels at 1%.
- Measure real peak concurrency from CDRs on your busiest day, add 20 to 30%, and cap the trunk to limit toll fraud.
What is the difference between SIP trunk channels and DIDs?
The sip trunk channels vs DIDs question comes down to capacity versus numbers. A channel (also sold as a call path, session or simultaneous call) is one active call leg on the trunk. While a call is in progress it holds one channel, in either direction. A 10-channel trunk allows 10 calls at once, with inbound and outbound counted together.
A DID (Direct Inward Dialing number) is only a phone number that the carrier routes to your PBX. DIDs add no capacity. You can have 50 DIDs on 2 channels, and the third simultaneous call, to any of those numbers, will fail.
Vendors mix the terms, so translate quotes before comparing them.
| Vendor term | Usually means | Adds capacity? |
|---|---|---|
| Channel, call path, session, simultaneous calls | One active call at once on the trunk | Yes |
| DID, number, TN | A phone number routed to you | No |
| Line | Ambiguous: a channel, a DID, or a user seat. Ask | Depends |
| Registered user, extension, seat | A device or person on your PBX | No |
| CPS (calls per second) | Rate of new call attempts, not concurrency | No |
How many SIP trunk channels do I need per user?
Staff count is not call count. Most employees are not on an external call at the same moment, and extension-to-extension calls on the same PBX never touch the trunk.
Rules of thumb give a starting point before you have data: about 1 channel per 3 to 5 office staff for light phone use, and about 1 per 2 to 3 for phone-heavy sales or support teams. Call centers are closer to 1 channel per agent, plus extra for queued callers.
The most common sizing error is forgetting that one caller can occupy several trunk legs. Each leg that goes to the carrier counts, even if only one person is talking.
| Scenario | Trunk channels used | Why |
|---|---|---|
| Normal inbound call to a desk phone | 1 | One leg to the carrier |
| Inbound call forwarded to a mobile | 2 | One inbound leg and one outbound leg, bridged on the PBX |
| Ring group with 3 external members | Up to 4 | Caller plus one outbound leg per external number, until one answers |
| Follow Me or find-me to mobile | 2 or more | Outbound legs are placed while the caller holds a channel |
| Blind or attended transfer to an outside number | 2 | The PBX may stay in the media path unless the trunk supports REFER |
| Call-center callback or dialer | 1 per attempt | Every ringing attempt uses a channel, answered or not |
| Call recording | No extra channel | Recording adds CPU and disk work, not trunk legs |
How do I calculate concurrent calls with Erlang B?
Erlang B estimates how many channels you need so that only a small share of attempts get blocked. Offered traffic in Erlangs = busy-hour calls x average call minutes / 60. One Erlang equals one channel busy for a full hour.
Worked example: 60 calls in the busiest hour x 4 minutes = 240 minutes, which is 4 Erlangs. Read the channels for the blocking level you accept from the table (1% means about 1 in 100 attempts is blocked). Count both directions and the extra forwarded legs when you total busy-hour calls.
Illustrative cases: a 5-person office with 15 calls x 4 minutes is 1 Erlang and needs 5 channels at 1%. A 25-person sales team with 120 calls x 5 minutes is 10 Erlangs, needs 18 channels, and about 22 to 23 with 20 to 30% headroom.
A small call center with 300 calls x 6 minutes is 30 Erlangs, needs about 42 channels, and roughly 50 with headroom. Replace these assumptions with your own busy-hour figures, and never cut the result below your measured peak.
| Offered traffic (Erlangs) | Channels for 2% blocking | Channels for 1% blocking |
|---|---|---|
| 1 | 4 | 5 |
| 2 | 6 | 7 |
| 3 | 8 | 8 |
| 4 | 9 | 10 |
| 6 | 12 | 13 |
| 10 | 17 | 18 |
How do I measure peak concurrent calls from my PBX?
Measured data beats any formula. Use the busiest day of the last quarter, not the average, and note seasonal or campaign spikes.
The commands below show live counts on Asterisk or FreePBX and a peak-per-day query from CDRs. The query counts ringing time too, because a CDR duration runs from the start of the call attempt, not from the answer. Unanswered and failed attempts therefore stay in, as long as they used the trunk.
- Run the live commands during busy periods and record the numbers, or log them every minute with cron.
- Export CDRs for the busiest weeks (FreePBX: Reports > CDR Reports, or query the asteriskcdrdb database).
- Edit the trunk name in the query to match yours, so only rows that used the carrier trunk are counted. Do not filter on disposition: NO ANSWER, BUSY and FAILED attempts still held a channel while they rang.
- Compute concurrency by sweeping start and end times across the whole period: +1 at each call's start, -1 at its end, with one running total that never resets. Then take the maximum per day, so a call that crosses midnight is still counted on both days.
- Compare the peak against your current limit and include forwarded and ring-group legs, which show up as separate CDR rows with an outbound channel.
# live counts
asterisk -rx "core show channels count"
asterisk -rx "core show calls"
# log active calls every minute (crontab entry)
* * * * * echo "$(date +\%F\ \%T) $(asterisk -rx 'core show calls' | head -1)" >> /var/log/calls.log
# peak trunk concurrency per day from CDRs (MariaDB 10.2+ for window functions)
# Counts ringing time (duration starts at the call attempt) and ALL dispositions.
# Replace 'mytrunk' with your trunk's channel name. Running total is NOT partitioned
# by day, so calls that cross midnight do not reset the count.
# Ends sort before starts at the same second (v ASC), which avoids overcounting.
mysql asteriskcdrdb -e "
SELECT d, MAX(c) AS peak FROM (
SELECT DATE(t) d, SUM(v) OVER (ORDER BY t, v ROWS UNBOUNDED PRECEDING) c FROM (
SELECT calldate t, 1 v FROM cdr
WHERE calldate >= CURDATE() - INTERVAL 90 DAY
AND (channel LIKE 'PJSIP/mytrunk-%' OR dstchannel LIKE 'PJSIP/mytrunk-%')
UNION ALL
SELECT calldate + INTERVAL duration SECOND, -1 FROM cdr
WHERE calldate >= CURDATE() - INTERVAL 90 DAY
AND (channel LIKE 'PJSIP/mytrunk-%' OR dstchannel LIKE 'PJSIP/mytrunk-%')
) e
) x GROUP BY d ORDER BY peak DESC LIMIT 10;"What happens when you run out of channels, and how do you protect yourself?
When the carrier limit is hit, inbound callers hear busy or fast-busy, and your PBX may see no INVITE at all because the carrier rejects first. Outbound attempts fail with SIP 486 Busy Here, 503 Service Unavailable, or sometimes 480 or 603, and users report congestion tones. Some carriers return a reason such as 'channel limit exceeded'.
The carrier limit and your PBX limit are separate. Your PBX can enforce its own cap per trunk, so check both when diagnosing.
To see rejections as they happen, use the commands below.
asterisk -rx "pjsip set logger on"
sngrep -d any port 5060
grep -E " 486 | 503 " /var/log/asterisk/full | tail
# cap the trunk on the PBX
# FreePBX: Connectivity > Trunks > (your trunk) > Maximum ChannelsHow do I avoid overbuying and size the bandwidth?
Start small and add channels as measured data demands. Most carriers add channels in minutes. Per-channel plans reward accurate sizing, while metered plans with included channels make extra channels cheap, so pay for headroom there and use the trunk cap for protection.
Bandwidth scales with channels: about 87 kbps per G.711 call and about 31 kbps per G.729 call, including IP overhead, in each direction. Ten G.711 channels need roughly 0.9 Mbps up and down, so confirm real upload capacity and QoS, not the advertised download speed.
Ask the carrier these questions before you buy:
- Is the limit total concurrent calls, or inbound and outbound separately?
- Can I burst above the limit, at what rate, and for how long?
- How fast can channels be added or removed, and is there a contract minimum?
- What does the carrier return when the limit is hit (486, 503, or a reason header)?
- Are DIDs priced separately, and is there a cap on the number I can hold?
- Can I set per-trunk caps and spend alerts in the portal?
- Are there CPS (calls per second) limits for dialers?
Common questions
Do I need one SIP channel per DID?
No. DIDs only route numbers to your system, and one channel can serve calls to any DID. Buy channels for peak simultaneous calls, not for the number of phone numbers.
Do internal calls use SIP trunk channels?
No. Calls between extensions on the same PBX stay local and never reach the carrier. Only calls that cross the trunk, including forwards to outside numbers, consume channels.
What are the most common mistakes when picking a channel count?
Counting DIDs as lines, sizing by total headcount, forgetting the second leg of forwarded calls, confusing the carrier limit with the PBX limit, and buying a flat number for a seasonal peak. Each one leads to either busy signals at peak or paying for unused capacity.
Does a 1% or 2% blocking target matter?
Yes. At 4 Erlangs, 9 channels give about 2% blocking and 10 give about 1%. Pick 1% for sales and support lines where a missed call costs revenue, and 2% where occasional retries are acceptable.
Can I change my channel count later?
Usually yes. Many carriers let you add channels in minutes through the portal, and some offer bursting. Review your peak data monthly for the first quarter and after any campaign or staffing change.