Skip to content

Find the limit ​

A find-the-limit test is a call test whose rate goes up in steps: 1 CPS for a minute, 2 CPS for a minute, 3 CPS, … Every step is checked against the pass/fail criteria when it ends. The result is the limit: the highest step that passed before the first one failed, and which criterion broke first.

It answers: how many calls per second can this PBX set up and carry while staying within my quality bar — and what gives first? Use it to size a system, to compare versions or configurations ("limit 3 CPS before, 4 CPS after"), and as a regression check on a schedule (with Required limit). The calls go either to a number such as the echo test (one leg per call) or between test extensions (two legs per call).

First step: make sure one call to the echo test passes, then find the limit with the defaults.

New test form with Find the limit selected
New test → Find the limit: destination, steps, hold and the stop rule; the plan lists the step rates.

Run it ​

  1. New test → Find the limit; pick the extension set and the Destination (the echo test).
  2. Start CPS 1, Step (+CPS) 1, Max CPS a bit above what you expect, Step duration (s) 60, Hold (s) 10 (a step must last at least 2 × hold), Stop after failed steps 1.
  3. Check the Plan card (steps, total time), then Start finding the limit.
  4. Read the Limit headline, the Steps card and What to look at: the limit is the highest step that passed before the first failed one — see Read the result.

How the steps work ​

The step plan ​

step rates: start, start + step, start + 2 × step, … up to max (the last step is max, even if the increment overshoots it)
number of steps = ⌈(max − start) ÷ step⌉ + 1 (at most 50)
calling time = warm-up + steps × step duration

Before step 1 a warm-up runs at the start rate (default 10 s). It is not a step and is not checked: the first seconds of a run are often slower (connections, caches, the first calls through the dialplan), and a limit shouldn't fail on them. It appears in the Steps card and the report as "warm-up".

Each step is one trend window: step i covers warm-up + (i − 1) × step duration to warm-up + i × step duration. Calls are counted in the step in which they happen (attempts, answers, failures, setup times of calls answered in that window).

Why steps must be at least 2 × hold ​

After the rate goes up, the number of calls in progress climbs for one hold time before it reaches CPS × hold. A step must last long enough that most of it runs at its full concurrency, otherwise the step measures a ramp. Hence the rule: step duration ≥ 20 s and ≥ 2 × hold — with a 20 s hold, at least 40 s; the form's default is 60 s.

What happens on the wire ​

The same as a call test — to a number or between test extensions:

  1. All callers (and, between extensions, all callees) register as virtual phones first, at up to 10 per second. A find-the-limit run has no fixed number of calls, so every caller registers — with Callers = 0 that is the whole set.
  2. The warm-up starts at the start rate, then the rate is set once per second to the current step's rate. Calls are placed evenly (1 ÷ CPS apart), round-robin over the callers, each held for the fixed Hold, then BYE.
  3. When a step ends it is evaluated at once. When Stop after failed steps failed steps in a row are reached, the run soft-stops: no new calls, calls in progress finish their hold. Otherwise it goes on to the next step, until the last step ends.
  4. The phones un-register at the end (50 at a time, within 2 minutes).

Stop by hand is also a soft stop; calls still up hold + 15 s later are hung up. A step that was running when the run ended is shown as stopped (incomplete) and not evaluated.

How a step is checked ​

A step is checked against the profile's criteria.limit (see below), with minimum data per check so a step with a handful of calls doesn't pass or fail on noise:

CheckNeeds in the stepOtherwise
Answer rate5+ finished calls (answered or failed)skipped — but failed if 5+ calls were placed and none finished ("placed, none answered or failed in the step": calls are piling up)
Setup time p955+ answered callsskipped
MOS (FreeSWITCH)3+ calls with FreeSWITCH RTP stats (ESL)skipped
MOS, Packet loss (round trip, or per direction between extensions)3+ calls with audio (per direction)skipped — failed if audio was sent on 3+ calls and none arrived (in that direction: one-way audio fails the step)
Round trip p95echo: echoed frames matched; extensions: both one-way delaysskipped
Phone registrations (extensions only)a REGISTER in the stepskipped (phones re-register rarely within a step)

A step passes when no check failed and at least one passed, fails when any check failed, and has no data when everything was skipped. If the tester placed fewer than 80 % of the step's calls, the step gets a note: either Max concurrent calls was reached (slow or stuck calls piled up), or the tester couldn't keep the rate (check the tester's CPU).

How the limit is derived ​

OutcomeShown asWhen
limit founde.g. 3 CPS — "step 3 passed · step 4 (4 CPS) failed", plus Broke firsta step passed, then a step failed
not reached≥ max, e.g. ≥ 10 CPS — "every step passed up to max: the limit is higher"all steps passed
below the start< start, e.g. < 1 CPS — "the first step already failed"step 1 failed
incomplete≥ the last passing step, or —the run ended (stopped) before a step failed

The limit is always the last step that passed before the first failure. If a later step passes again (with Stop after failed steps 0 or > 1), the limit doesn't move and a note says the limit is not sharp — noisy steps or a transient problem.

Worked example: echo test, 1 → 5 CPS

Settings: Destination *9196, Callers 20, Start 1, Step 1, Max 5, Step duration 60 s, Hold 20 s, Warm-up 10 s, Stop after failed steps 1.

  • Steps: ⌈(5 − 1) ÷ 1⌉ + 1 = 5 steps at 1, 2, 3, 4, 5 CPS. Minimum step: max(20, 2 × 20) = 40 s ✓.
  • Calling time: 10 + 5 × 60 = 310 s. Calls (all steps): 1 × 10 + 60 × (1 + 2 + 3 + 4 + 5) = 910.
  • Peak concurrent at the last step: 5 × 20 = 100 (the default cap of 500 is enough; below 100 the start is refused).
  • Estimated: 310 + 20 + 10 + 5 = 345 s.

Suppose steps 1–3 pass (setup p95 410, 450, 480 ms) and step 4 has setup p95 650 ms > 500 ms. Step 4 fails, the run stops placing calls at ~250 s, the calls in progress finish. Result: limit 3 CPS, "step 3 passed · step 4 (4 CPS) failed", Broke first: Setup time p95. With Required limit 2 CPS the verdict is passed; without it the run has no pass/fail verdict, only the limit.

Worked example: between test extensions, up to 4 CPS

Settings: Test extensions, Callers 20, Callees 100, Start 1, Step 1, Max 4, Step 60 s, Hold 20 s.

  • Callees needed: ⌈4 × (20 + 5)⌉ = 100 — exactly the default safety.max_virtual_phones. A max of 5 CPS would need 125 callees and is refused unless the profile allows more virtual phones (or the hold is shorter: 5 × (15 + 5) = 100).
  • Phones register first: 120 at 10/s ≈ 12 s.
  • Each call has two legs, so FreeSWITCH works roughly twice as hard per CPS as with the echo test; expect a lower limit than the echo run on the same PBX.

Choose the settings ​

Field (UI)API field (limit.*)Default (form)AllowedWhat it changes
Extension setextension_set_id (top level)first seta set of this profile
Destinationdestination_mode + destinationthe first allowed numbera number of safety.allowed_destinations, or Test extensionsOne leg per call (echo: round-trip audio) or two legs (one-way audio per direction).
Callerscallers00 … set size (− callees); 0 = all (not used as callees)Extensions from the top; all of them register first.
Callees (virtual phones)callees0≥ ⌈max CPS × (hold + 5 s)⌉, ≤ safety.max_virtual_phonesTest extensions only. The form's hint links the number needed.
Start CPSstart_cps1> 0Rate of step 1 and of the warm-up.
Step (+CPS)step_cps1> 0 (0 only if max = start: a single step)Added per step.
Max CPSmax_cps10≥ start, ≤ safety.max_cps (50)Rate of the last step. At most 50 steps.
Step duration (s)step_seconds60≥ 20 and ≥ 2 × holdOne trend window each.
Hold (s)hold_seconds201 … 3600Fixed per call; concurrency ≈ CPS × hold.
Stop after failed stepsstop_after_failed_steps10 … number of steps; 0 = run every stepFailed steps in a row that end the run.
Warm-up (s)warm_up_seconds100 … 120; 0 = noneAt the start rate before step 1, not checked.
Codec offeredcodecG722G722, PCMA, PCMU
Callers are / Callees arecaller_client / callee_clientsipsip, webrtc, mixed (callees: test extensions only)SIP phones, web clients or a device mix. Run the limit once with each to compare the WebRTC path with the SIP path, or with your real mix (e.g. 30 % web) for a limit that matches it.
Web clients %web_pct301 … 99; only with a mixed sideShare of web clients on each mixed side, fixed per extension and spread evenly, so every step has this mix.
Max concurrent callsmax_concurrent0≥ ⌈max CPS × hold⌉, ≤ safety.max_concurrent_calls (500); 0 = the safety limitMust not cap the last step, otherwise the tester would set the limit.

The criteria editor below the plan has Answer rate, per step, Setup time p95, per step, the audio checks, Phone registrations and Required limit (min_limit_cps).

Fix a refused start ​

422 with every problem at once:

RuleWhy
Start > 0; max ≥ start; max ≤ safety.max_cps; step > 0 (or max = start)A valid step plan.
At most 50 steps"use a larger step_cps".
Step duration ≥ 20 s and ≥ 2 × holdMost of each step must run at its full concurrency.
Stop after failed steps 0 … number of steps
Warm-up 0 … 120 s
Max concurrent ≥ ⌈max CPS × hold⌉"the tester, not the PBX, would set the limit".
Extensions: callees ≥ ⌈max CPS × (hold + 5 s)⌉A callee is busy for setup + hold; fewer callees produce 486s from the PBX, which would fail steps for the wrong reason.
All rules of a call test at the max rateDestination allowed, callers/callees fit the set, hold 1 … 3600 s, codec, media mode rtp/srtp for extensions, every caller has a callee in its domain, estimated duration ≤ safety.max_duration; web clients: the profile's WebSocket URL, media srtp, no PCMU.

Estimated duration = warm-up + steps × step duration + hold + 10 s + 5 s (+ callees ÷ 10 + 16 s between extensions). Also 402 without a licence, 409 while another run is active.

Read the result ​

Everything a call test records (to a number, between extensions), plus the Steps card (with a device mix also Device mix per step: answer rate · setup p95 per caller → callee pairing, so you see which device kind degrades first; the step verdict and the limit still use all calls of the step):

PartWhat
HeadlineLimit (or ≥ / <), the sub-line (which step passed / failed), Broke first; planned steps, the stop rule, the warm-up.
ChartsLoad per step (target vs achieved CPS, concurrency) and Setup, round trip & MOS per step.
Steps tablePer step: target and achieved CPS, result (passed / failed / no data / running / stopped), failed checks, the values; notes on steps that couldn't keep the rate.
Components per stepWhen the sources are on: what Kamailio, FreeSWITCH (idle CPU) and rtpengine did during each step — see Kamailio, rtpengine.
Where the setup time goesPer step, from FreeSWITCH's timestamps: before FreeSWITCH, dialplan, callee leg — see Setup time.

The What to look at card reads the steps too (FreeSWITCH CPU running out, idle CPU points per CPS, the setup part that grew most), see hints. The Schedules history shows a limit run as "limit 3 CPS", "limit ≥ 10 CPS" or "below 1 CPS".

The newest limit of a profile is compared with the real peak load its PBX watches saw: the Capacity card on the Dashboard and the profile page shows the headroom (e.g. peak 0.6 CPS, limit 3 CPS → 5×), and the run's HTML report has a Capacity section as of the run's end.

Run page of a finished find-the-limit test
A finished find-the-limit run: the limit and what broke first.
Steps card of a find-the-limit run
The Steps card: one row per step with its checks, components and setup breakdown.

Set the pass / fail criteria ​

criteria.limit is checked per step (a step is the PBX's sustained load, so the bar is that of a call test):

Check (per step)Default
Answer rate≥ 99 %
Setup time p95≤ 500 ms
MOS (FreeSWITCH)≥ 4.0
MOS (round trip, or per direction)≥ 4.0
Packet loss (round trip, or per direction)≤ 1 %
Round trip p95≤ 300 ms
Phone registrations (extensions only)≥ 99 %

The run's verdict has one own check, Limit (highest passing step) ≥ Required limit (min_limit_cps), off by default. Without it (and without optional Kamailio / rtpengine / stuck-call checks) a limit run ends with no verdict: its result is the limit itself. With it, "below the start" fails, and "not reached" passes. See Pass / fail verdict.

Avoid common mistakes ​

  • The limit is relative to the system you test. A low limit on a small test VM says how that VM copes, not what the PBX software can do on production hardware — it is not a PBX defect. Use it to compare versions, configurations and changes on the same system, and to learn which component runs out first.

  • Setup time usually breaks first. As a server runs out of CPU, calls queue and the setup p95 rises within a step long before calls fail. Loosen max_setup_p95_ms if your bar is different; the limit is always "at this quality bar".

  • Limit callers in number mode. Every caller registers first and holds a connection; 20–50 callers are plenty for an echo test.

  • Keep the hold short (10–20 s): shorter steps are allowed and the run is quicker; concurrency still follows CPS × hold.

  • Use Stop after failed steps 2 on a noisy system so one unlucky step doesn't end the run; the limit stays "the last pass before the first failure".

  • A step note "fewer calls than planned" means the tester, not the PBX, limited that step: max concurrent reached (calls piling up — a PBX symptom) or this machine's CPU.

  • Compare like with like: same destination type, hold, step duration, codec and media mode.

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