Skip to content

Busy hour ​

A busy hour test simulates an office at its busiest: a group of phones registered for the whole run, each placing and receiving calls at a realistic rate, with random call durations, for an hour or more. Results are reported per trend window so you see whether the PBX stays stable over time.

It answers: does the PBX hold up under a realistic sustained load — not a burst, but hours of steady traffic with registrations, keepalives and re-REGISTERs running alongside? Use it after a change to see whether quality drifts over time (memory, leaks, slowly filling tables), to soak-test a new version, or to check a traffic model you expect in production. For a peak rate, use Find the limit; for a short fixed load, Calls between test extensions.

First step: run a short busy hour (10 minutes, few phones) to check the setup before an hour-long run.

New test form with Busy hour selected
New test → Busy hour: phones, traffic model and trend windows; the plan shows CPS, Erlang, peaks and occupancy.

Run it ​

  1. New test → Busy hour; pick the extension set and Phones (e.g. 40; each registers as a virtual phone).
  2. Calls per phone and hour 6–10 and Average hold (s) 120 for office traffic; Place calls for10m the first time, 1h after that.
  3. Leave Trend window (s) at its default; check the Plan card (expected calls up, occupancy), then Start busy hour test.
  4. Read the Trends card: the worst window and the drift from the first to the last window — see Read the result.

Size the traffic model ​

You describe the traffic per phone, like a telephony planner, and PBXsight derives the rate:

CPS = phones × calls per phone and hour ÷ 3600
Erlang (average calls up) E = CPS × average hold
peak calls up ≈ E + 3 × √E
phone occupancy = 2 × E ÷ phones (each call keeps two phones busy)

  • Calls per phone and hour is the busy-hour call attempts (BHCA) per phone. Each phone places that many on average and, because callees are picked at random, receives about as many.
  • Erlang is the number of calls up at an average moment. With random holds, the number of calls up fluctuates around it; E + 3√E is a practical upper bound of the peaks (the Plan shows it).
  • Occupancy is the share of time a phone is in a call. Above 50 % the form warns: phones often get a second call while in one.
Worked example: 100 phones, 4 calls per phone and hour, 3 minutes average hold

Settings: Phones 100 (the default safety.max_virtual_phones), Calls per phone and hour 4, Average hold 180 s, Place calls for 1h, no ramp, Registration expires 300 s, Trend window 300 s.

  • CPS = 100 × 4 ÷ 3600 = 0.111 CPS (400 calls/h, one call every 9 s).
  • Erlang E = 0.111 × 180 = 20 calls up on average; peaks ≈ 20 + 3 × √20 ≈ 20 + 13.4 → 34.
  • Occupancy = 2 × 20 ÷ 100 = 40 % of the time in a call.
  • Expected calls ≈ 0.111 × 3600 = 400; FreeSWITCH sees ~800 legs.
  • Holds: random, exponential with mean 180 s, between 2 s and 3 × 180 = 540 s.
  • Trend windows: ⌈(3600 + 540) ÷ 300⌉ = 14 windows of 5 minutes.
  • Re-registrations: each phone refreshes at a random 60–90 % of 300 s, on average every 225 s; the Plan estimates ⌊4140 ÷ 225⌋ = 18 per phone (1800 in all).
  • Estimated (server): 3600 + (540 + 15) + 10 + 5 + (100 ÷ 10 + 8) + 8 = 4196 s ≈ 1 h 10 min, within the default safety.max_duration of 2 h.

With 6 calls per phone and hour instead: 0.167 CPS, E = 30, peaks ≈ 47, occupancy 60 % — the form warns about second calls.

What happens on the wire ​

Phones ​

  1. Every phone (the first Phones extensions of the set) registers from the tester as a virtual phone at up to 10 per second (min(10, safety.max_registration_rate)). The Dashboard and New test show Test starting with a Stop button meanwhile.
  2. Each phone holds its own connection (TCP/TLS: CRLF keepalive every 25 s), sends Expires: <Registration expires> and re-REGISTERs at a random 60–90 % of the granted expiry, so 100 phones don't refresh in waves. A lost connection is noticed within a second and re-registered (retry every 10 s on failure).
  3. Every phone is both a caller and a callee: calls are placed over the caller's registration connection, and the phone answers calls from the other phones (180 Ringing, then 200 OK at once, audio from the phones' media engine).
  4. Phones that didn't register are left out. If none can be paired, the start is refused.
  5. With Phones are: Mixed, a fixed share of the phones are web clients (they register over the WebSocket URL and call / answer with WebRTC), the rest SIP phones; phones.log states the counts.

Calls ​

  • Who calls whom: in rounds, every phone is a caller once per round (round order shuffled), calling a random other phone of its own domain. So all phones place and receive about the same number of calls. The list holds about the expected number of calls (at most 20,000 entries; the engine cycles through it).
  • Rate: calls are paced evenly at the computed CPS (one every 1 ÷ CPS seconds — the randomness is in who calls whom and how long, not in the spacing). With Ramp-up, the rate rises linearly from 10 % of the busy-hour rate to the full rate over the ramp.
  • Hold: drawn per call from an exponential distribution with the Average hold as its mean, clamped to 2 s … 3 × average. The callee hangs up (BYE) after the drawn hold, as a person would. The caller only hangs up itself as a fallback, at maximum hold + 15 s — so in a busy hour run most calls end as Hung up by PBX from the caller's view, which is normal.
  • Second calls: a phone that is in a call still answers a new INVITE. If the PBX itself answers 486 Busy Here because the callee is in a call (user-busy handling, call waiting off), PBXsight counts it as busy, not failed — see below.
  • Every request carries the test tags (User-Agent: pbxsight/<run id>, X-PBXsight-Run, X-PBXsight-Call), so FreeSWITCH's events are counted as test traffic.

Busy versus failed ​

PBXsight tracks which test extensions are in a call (from the INVITE until the call has ended on any path, as the PBX counts ringing channels too). A 486 for a callee that is in a call (or whose call ended less than 3 s before) is the PBX's expected user-busy handling and is counted as Busy. A 486 for an idle callee stays a failure and is shown under Failed ("× 486 to an idle callee").

The summary also shows the expected busy share, ≈ 2 × average calls up ÷ phones — the chance a random callee is in a call. If the measured busy share is close to it, the PBX behaves as expected.

Stuck calls versus "not answered" legs ​

In a busy hour many calls are never answered: the callee is busy (486), rejects or the caller gives up. With rtpengine, those calls still had an offer at the relay, so rtpengine lists a leg for them — with no media on any side. PBXsight counts such legs as not answered (Media path card, PBX media relay: n not answered), not as one-way audio and not as stuck: no audio is expected on a call that was never answered.

A stuck call is different: FreeSWITCH still holds an answered call (or one that rings far too long, or outlives its hangup). No media there means one side went quiet during an answered call — a phone that lost its network, a lost BYE. So:

You seeIt meansAct?
n not answered on the Media path cardbusy / rejected / cancelled offers; rtpengine never got mediano — compare with Busy and Failed
silent sides on the Media path cardanswered legs where one side sent nothing while the other did: one-way audioyes — NAT, the relay, the codec
Stuck calls card, rule No mediaFreeSWITCH still has the answered call, one side silent for no_media_afteryes — check the leg; the card gives a uuid_kill to copy
Stuck calls card, rule Ringing too long / Long call / Ghosta leg that never endsyes — dialplan, timeouts, lost BYEs

End of the run ​

After Place calls for, no new calls start; calls in progress finish (their callee hangs up). Then all phones un-REGISTER, 50 at a time, all within 2 minutes. Stop does the same (soft stop); calls still up after the maximum hold + 15 s + 15 s are hung up. Stopped while the phones are still registering, the run sends no more REGISTERs, un-registers the phones registered so far and is recorded as stopped. The runner stops a run itself at estimated + max hold + 30 s + 30 s (capped at safety.max_duration).

Choose the settings ​

Field (UI)API field (busy_hour.*)Default (form)AllowedWhat it changes
Extension setextension_set_id (top level)first seta set of this profileThe phones' accounts.
Phonesphones02 … safety.max_virtual_phones (default 100), ≤ set size; 0 = allTaken from the top of the set. Each registers, calls and answers.
Calls per phone and hourcalls_per_phone_hour6> 0; phones × value ÷ 3600 ≤ safety.max_cpsBHCA per phone. Sets the CPS.
Average hold (s)avg_hold_seconds1803 … 1200 (3 × average ≤ 1 h)Mean of the random holds; max hold = 3 × this.
Place calls forduration1h≥ 10 sCalling period; then calls in progress finish.
Ramp-up (s)ramp_seconds0≥ 0 and shorter than the durationFrom 10 % to the full rate; 0 = full rate at once.
Codec offeredcodecG722G722, PCMA, PCMUThe only codec offered and answered.
Phones areclientsipsip, webrtc, mixedSIP phones, web clients (WSS + ICE / DTLS-SRTP; profile WebSocket URL, media SRTP, G.722 or PCMA) or a device mix. A phone calls and answers as its kind.
Web clients %web_pct301 … 99; only with mixedShare of the phones that are web clients, spread evenly over the list. The Device mix card shows results per pairing (web → SIP, …); windows carry them too.
Max concurrent callsmax_concurrent00, or ≥ Erlang and ≤ safety.max_concurrent_calls (500); 0 = the safety limitCalls up at most; a new call waits for a free slot.
Registration expires (s)expires30060 … 3600The phones' Expires. Shorter = more re-REGISTER load during the run.
Trend window (s)window_seconds300≥ 10; at most 120 windows over duration + max holdSize of the time windows the results are cut into.

The media mode (must be rtp or srtp), transport and SIP target come from the PBX profile.

Fix a refused start ​

422 with every problem at once:

RuleWhy
safety.max_virtual_phones > 0, phones 2 … that limit, ≤ set sizeCalls go between the phones; each phone is a connection and a media stream on the tester.
Media mode rtp or srtpPhones answer with audio from the media engine.
Calls per phone and hour > 0 and the resulting CPS ≤ safety.max_cpse.g. "100 phones x 4 calls/h = 0.1111 CPS".
Average hold 3 … 1200 sThe max hold (3 ×) must stay within an hour.
Duration ≥ 10 s; ramp ≥ 0 and shorter than the duration
Max concurrent ≥ the Erlang value"max_concurrent … is below the expected … concurrent calls (CPS x average hold): the busy-hour rate can't be reached." (Between Erlang and the peak, the form only warns: calls are delayed at the peaks.)
Expires 60 … 3600 s
Window ≥ 10 s and ⌈(duration + max hold) ÷ window⌉ ≤ 120Keeps the trend table readable; use a larger window for long runs.
No phone alone in its domain"N phone(s) are the only test extension of their domain" — calls only go within a tenant.
Estimated duration ≤ safety.max_durationestimated = duration + (max hold + 15 s) + 10 s + 5 s + (phones ÷ 10 + 8 s) + 8 s.

Also 402 without a valid licence, 409 while another run is active.

Read the result ​

The run page is that of a call test between test extensions (see there), with:

WhereWhat
TilesCalls (with phones × calls/h and the Erlang value), Answered, Failed (486s to an idle callee noted), Busy (share and the expected share), Answer rate, Active calls, Setup time p95, MOS.
Trends cardOne row per window: calls, answered, failed, busy, answer rate, setup p95, audio per direction — the basis of the worst-window and drift checks. See Trend windows.
Virtual phones (callees) cardRegistrations (incl. every re-REGISTER), connections lost, calls received, rejected, ended by caller / by phone, one-way quality per direction.
Chartsbucketed by the run's length (a 1-hour run shows minutes, not seconds).
Windows CSV exportThe trend windows, one row each (Export).
Run page of a finished busy hour test
A busy hour run: Busy tile, Trends, the virtual phones.
Trends card of a busy hour run
The Trends card: one row per window; the worst window and the MOS drift are checked.

Set the pass / fail criteria ​

From the profile's criteria.busy_hour:

CheckDefaultNotes
Answer rate≥ 99 %answered ÷ (answered + failed); busy is neither
Setup time p95≤ 500 msover the run
MOS (FreeSWITCH)≥ 4.0needs ESL
MOS per direction≥ 4.0 eachcaller → callee, callee → caller
Packet loss per direction≤ 1 % each
Round trip p95≤ 300 mssum of both one-way p95 delays
Phone registrations≥ 99 %the phones' REGISTERs and re-REGISTERs
Answer rate, worst window≥ 95 %windows with 5+ finished calls
Setup time p95, worst window≤ 1000 mswindows with 5+ answered calls
MOS drop over time≤ 0.3first → last window with 3+ calls with audio, the worse direction
Busy (callee in a call)offmax_busy_pct; the form suggests 30 %

How the windows are evaluated is on Trend windows; how checks combine on Pass / fail verdict.

Avoid common mistakes ​

  • Use extensions no real phone is registered on; the PBX would ring those too.
  • 100 phones is the default cap (safety.max_virtual_phones). The profile owner can raise it; each phone costs one connection on the SIP entry point and a media stream on the tester per call.
  • Keep occupancy realistic (well below 50 %). High occupancy makes second calls common, which tests call waiting / busy handling more than load.
  • Short expiry = extra load. 300 s makes every phone re-REGISTER every 3–4.5 minutes: part of the test on purpose. Use 3600 s to keep registrations out of it.
  • Long runs need the computer awake and PBXsight running for the whole time; see Schedules to run it at night.
  • Results are relative to the system you test. A busy hour that degrades on a small test VM says how that VM copes, not that the PBX software is faulty; compare runs on the same system before and after a change.
  • Compare windows, not just totals. A run can pass on totals while the last windows degrade; the worst-window and MOS-drop checks catch that.

PBXsight — load testing and monitoring for FreeSWITCH PBXes. Only test systems you own or may test.