Skip to content

Pass / fail verdict ​

When a run ends, PBXsight compares the run's numbers with a set of pass/fail criteria (thresholds) and shows the result in the Pass / fail card at the top of the run page, in the HTML report and in the Results list. This page lists every criterion, its default, which data it needs and exactly how its value is computed — so you can tell what a red or grey row means and set thresholds that fit your PBX. First step: open a finished run and read its Pass / fail card from the top; each failed row names the criterion, and the section of this page with the same name explains it.

A verdict is relative to the system you test

The defaults are a starting point, not a standard. A run that fails on a small test VM tells you where that system's limit is; it is not a PBX defect, and the same software on bigger hardware will pass at a higher load. Use verdicts to compare the same system before and after a change, or set criteria to the quality your users need.

Pass / fail card of a call run with passed, failed and skipped checks
The Pass / fail card: one row per check — measured value, threshold, note.
  1. Passed check: the value meets the threshold
  2. Failed check: the value is shown in red
  3. Skipped check: no data to judge (the note says why)

How a run is judged ​

Each criterion is one check: a measured value, an operator (≥ or ≤) and a threshold. A check ends in one of three states:

StateWhenEffect on the run
passedthe value meets the threshold (value ≥ threshold or value ≤ threshold)counts as passed
failedthe value misses the thresholdthe run fails
skippedthere is no data to judge (no ESL, media off, no answered call, a source not configured, too few calls in a window…)ignored

The run's verdict follows from its checks:

FAILED   if at least one check failed
PASSED   if no check failed and at least one passed
none       if every check was skipped, or no criteria were set

The card's badge reads PASSED · 5 of 5 checks or FAILED · 1 of 6 checks: skipped checks are not counted in either number. "none" shows as no criteria evaluated.

A criterion that is switched off (no threshold) is not a check at all: it doesn't appear in the card.

Why missing data is "skipped", not "failed" ​

Many values need a source that may legitimately be absent: FreeSWITCH's MOS needs ESL, the tester's MOS needs the media engine, Kamailio's shared memory needs the Kamailio source. If a missing source failed the run, every run without ESL would be red for the wrong reason. So a check without data is skipped — and its note says what was missing (for example "no FreeSWITCH RTP stats with audio (needs ESL; see Media path)").

Exceptions: silence fails

Two situations are failures even though there is "no value":

  • Audio sent, nothing came back. If the media engine streamed audio but no call received any audio back, the tester MOS and packet loss checks fail with the note "no audio came back on any call" (calls between test extensions: "no audio arrived on any call", per direction). Silence is a real problem, not missing data.
  • Limit steps that stall. In a find-the-limit step where at least 5 calls were placed but none was answered or failed by the end of the step, the answer rate fails — an overloaded PBX must not read as "no data". See Limit steps.

Where the criteria come from ​

  • Defaults per test type live in the PBX profile (Profiles → Default pass/fail criteria). On the very first start they are seeded from the criteria: section of config.yaml (see Configuration); after that the profile is the source.
  • Per test: the New test form shows the criteria of the chosen type with a switch per row. Switching a row on fills in the profile's default (or a suggested value for criteria without a default); switching it off means "not checked"; Reset to defaults restores the profile's set.
  • What a run uses: the set sent with the test replaces the profile's defaults as a whole (it is not merged). Schedules save the set with the schedule.
  • Stored with the run. The thresholds a run used are saved in its parameters (shown under Criteria in the report). Changing a profile later doesn't re-judge old runs — so a run's verdict always means "against the thresholds it was started with".

Thresholds are validated before a run starts: percentages 0..100, times and counts ≥ 0, MOS thresholds 1..4.5, max_mos_drop 0..3.5.

Call tests ​

Criteria set criteria.call (calls to a number and calls between test extensions).

CheckKeyDefaultNeedsValue
Answer ratemin_answer_rate≥ 99 %at least one call answered or failedanswered ÷ (answered + failed) × 100
Setup time p95max_setup_p95_ms≤ 500 msanswered calls95th percentile of the setup times (INVITE → 200 OK) of all answered calls
MOS (FreeSWITCH)min_mos≥ 4.0ESL + the profile's media mode rtp or srtpaverage of FreeSWITCH's rtp_audio_in_mos over the test calls that carried audio
MOS (tester, round trip)min_tester_mos≥ 4.0media mode rtp or srtpaverage of the per-call E-model MOS of the returning audio
Packet loss (round trip)max_tester_loss_pct≤ 1 %media mode rtp or srtppackets lost ÷ packets expected, summed over all calls with audio back
Round trip p95max_tester_rtt_p95_ms≤ 300 msmedia rtp/srtp and an echo that returns the tester's own frames95th percentile of the per-call average round-trip times

Notes:

  • Calls still up when the run ends are neither answered nor failed in the answer rate's sense until they finish; a run stopped early judges what finished. A 486 that the busy-hour logic classifies as busy is not a failure (below).
  • The round trip is only measurable when the audio that comes back is the tester's own (an echo test). If frames can't be matched — no echo, or the PBX transcoded the audio — the check is skipped with "echoed frames could not be matched (no echo, or transcoded)".
  • Details of setup time and percentiles: Setup time. Audio values: Audio quality and MOS.

Calls between test extensions ​

When the destination is test extensions, audio is measured one way per direction (each side receives the other's audio), so the tester checks are split:

CheckKeyValue
MOS (caller → callee)min_tester_mosaverage MOS of what the callee phones received
MOS (callee → caller)min_tester_mosaverage MOS of what the callers received
Packet loss (caller → callee), (callee → caller)max_tester_loss_pctloss per direction
Round trip p95max_tester_rtt_p95_mssum of both one-way p95 delays (an upper bound of the round trip p95)
Phone registrationsmin_success_ratecallee phones' successful (re-)REGISTERs ÷ all finished × 100
Busy (callee in a call)max_busy_pctbusy ÷ attempts × 100

The same threshold applies to both directions: one setting, two checks. The round trip check is skipped when either direction's one-way delay can't be measured (no audio, transcoded audio, or the PBX didn't pass the X-PBXsight-Call header to the callee, so the two legs can't be linked).

Phone registrations and busy in call tests

criteria.call has no default for min_success_rate or max_busy_pct, and the New test form doesn't offer them for call tests, so these two checks normally appear only in busy-hour runs. They are evaluated for a call test between test extensions if the criteria set contains them (e.g. from config.yaml or the API).

A 486 is a failure here. A call test or find the limit between test extensions is planned so that every callee is free when it is dialled (enough callees for the concurrency; the form warns otherwise). A 486 Busy Here therefore means the PBX refused a call it should have put through, and it counts as a failure in the answer rate. Only busy hour, where random calls between the phones expect some to be in a call, sorts 486s into busy and failed.

Registration tests ​

Criteria set criteria.registration.

CheckKeyDefaultValue
Registration successmin_success_rate≥ 99 %REGISTERs answered 200 ÷ (succeeded + failed) × 100
Response time p95max_response_p95_ms≤ 500 ms95th percentile of first REGISTER → 200 OK, including the 401 challenge round, over successful registrations
Storm recovery, worstmax_storm_recovery_s≤ 30 sweb clients only: the longest time from a storm until all clients were registered again; a storm where not all came back within the recovery window fails; skipped when the run had no storm
Unexpected WebSocket dropsmax_ws_dropsoffweb clients only: connections lost that the tester didn't close, outside detected storms

The two web-client checks are added only to registration runs with registration.client: webrtc; SIP registration runs show exactly the two checks above. The success rate and response time p95 include the re-REGISTERs after storms — so a storm run can recover in seconds and still fail a strict p95. See Criteria for storm runs for suggested values.

Busy hour ​

Criteria set criteria.busy_hour: the call checks (as for calls between test extensions) plus checks over the run's trend windows.

Busy is not failed. Random calls between the phones sometimes reach a phone that is already in a call; a PBX with user-busy handling answers 486 Busy Here. PBXsight knows which of its phones are in a call and counts a 486 to such a callee (or one whose call ended less than 3 s before) as busy: not a failure and left out of the answer rate. A 486 to an idle callee stays a failure. The busy check's note shows the expected busy share for comparison. See Busy hour.

CheckKeyDefault
Answer ratemin_answer_rate≥ 99 %
Setup time p95max_setup_p95_ms≤ 500 ms
MOS (FreeSWITCH)min_mos≥ 4.0
MOS per directionmin_tester_mos≥ 4.0
Packet loss per directionmax_tester_loss_pct≤ 1 %
Round trip p95 (sum of one-way p95)max_tester_rtt_p95_ms≤ 300 ms
Phone registrationsmin_success_rate≥ 99 %
Answer rate, worst windowmin_window_answer_rate≥ 95 %
Setup time p95, worst windowmax_window_setup_p95_ms≤ 1000 ms
MOS drop over timemax_mos_drop≤ 0.3
Busy (callee in a call)max_busy_pctoff (the form suggests 30 %)
  • Worst window: the lowest answer rate / highest setup p95 of any window with at least 5 finished calls (5 setup times). Windows with fewer are ignored; with none, the check is skipped.
  • MOS drop over time: per direction, MOS of the first window minus MOS of the last window, both with at least 3 calls with audio; the larger drop of the two directions is checked. A negative value (quality improved) passes.

How windows are cut and filled: Trend windows.

Limit steps ​

A find the limit run raises the call rate in steps; each step is one trend window and is checked against criteria.limit when the step ends. The steps carry the checks — not the run.

Check per stepKeyDefaultMinimum data in the step
Answer rate, per stepmin_answer_rate≥ 99 %5 finished calls
Setup time p95, per stepmax_setup_p95_ms≤ 500 ms5 answered calls
MOS (FreeSWITCH)min_mos≥ 4.03 calls with FreeSWITCH RTP stats (only with media)
MOS (round trip, or per direction)min_tester_mos≥ 4.03 calls with audio (per direction)
Packet loss (round trip, or per direction)max_tester_loss_pct≤ 1 %3 calls with audio
Round trip p95max_tester_rtt_p95_ms≤ 300 ms3 calls with audio (test extensions: sum of one-way p95, both directions measured)
Phone registrations (test extensions)min_success_rate≥ 99 %a REGISTER in the step (phones rarely re-register within a step, so usually skipped)

Rules special to steps:

  • Fewer calls than the minimum skips that check in that step.
  • Stalled step: at least 5 calls placed but none answered or failed during the step → the answer rate fails ("N calls placed, none answered or failed in the step").
  • No audio at all: at least 3 calls without any arriving audio and no call with audio in either direction → the audio checks fail.

A step's result is passed (no check failed, at least one passed), failed, no data (every check skipped — counts as neither), stopped (the run ended during the step) or running. The optional warm-up before step 1 is not a step and is never checked.

From steps to the limit ​

  • The limit = the highest step that passed before the first failed step — the load the PBX sustained within the criteria. A step that passes after a failure doesn't raise it (a note says the limit isn't sharp).
  • Stop rule (stop_after_failed_steps): 1 (default) ends the test at the first failed step, N after N failed steps in a row, 0 runs every step. Stopping is soft: no new calls, calls up finish.
  • Outcomes: limit found (some steps passed, then one failed); below start — shown < start CPS (the first step already failed); no limit — shown ≥ max CPS (every step passed); incomplete (the run ended before a step failed or the last step finished).
  • Broke first: the names of the checks that failed in the first failed step — usually the most useful single line of a limit run.

The run's verdict: min_limit_cps ​

A limit run gets a verdict only with a Required limit (min_limit_cps, off by default):

CheckKeyValue
Limit (highest passing step)min_limit_cpsthe limit found, in CPS
  • no limit → the value is max CPS (the limit is at least that) and the note says so;
  • below start → no value, and the check fails (the PBX didn't sustain even the start rate);
  • incomplete without any passed step → skipped.

A second run-level check compares the limit with the test's baseline (max_limit_cps_drop_pct, off by default).

Without either the Pass / fail card says "Every step is checked against the criteria (see Steps). The run itself gets a verdict only with a required limit (min_limit_cps) or a limit vs baseline check (max_limit_cps_drop_pct)." — unless optional Kamailio, rtpengine or stuck-call criteria are set: those are checked for the run as a whole in every run type, limit runs included.

Worked example: a limit run

Steps 1, 2, 3, 4 CPS, stop_after_failed_steps: 1, min_limit_cps: 2.5.

StepTargetAnswer rateSetup p95Result
11 CPS100 %310 mspassed
22 CPS100 %380 mspassed
33 CPS100 %470 mspassed
44 CPS100 %1 900 msfailed (Setup time p95)

Limit = 3 CPS, broke first: Setup time p95, per step. Run verdict: 3 ≥ 2.5 → PASSED · 1 of 1 checks. With min_limit_cps: 4 the same run would be FAILED.

The Steps card and the full find-the-limit procedure: Find the limit.

Steps card of a find-the-limit run
The Steps card: target and placed CPS, the step's numbers, its result and the checks that failed.

DTMF and IVR checks ​

CheckKeyValue
DTMF okmin_dtmf_ok_pctcalls whose digits all arrived exactly as sent, %. Checked only when the digits were verified — by the callee phone (test extensions) or FreeSWITCH's DTMF events (ESL); otherwise skipped with "not verified", never failed. Default 99 % for call tests.
IVR script passedmin_ivr_pass_pctIVR / voicemail check: answered calls that passed every step, % (default 100 %; criteria.ivr). Skipped when no answered call ran the script.

An IVR check also has answer rate and setup p95; it has no round-trip MOS (no echo) — only the packet loss of what the PBX sends is checked (max_tester_loss_pct, off by default for ivr).

PBX watch ​

Criteria set criteria.watch. A watch places no calls; it judges what FreeSWITCH saw (all traffic). Real traffic may be sparse, so every check without data is skipped.

CheckKeyDefaultValue
ESL data coveragemin_coverage_pct≥ 95 %seconds with a fresh ESL poll ÷ seconds of the watch × 100 (note: ESL disconnects)
Call successmin_call_success_rate≥ 95 %(answered + busy/no answer/declined) ÷ (answered + busy/no answer/declined + failed) × 100
Call success, worst windowmin_window_call_success_rate≥ 90 %lowest call success of a window with at least 10 ended calls (cancels excluded)
Dropped callsmax_dropped_pct≤ 1 %answered calls ended by an abnormal cause ÷ answered × 100
Post-dial delay p95max_setup_p95_msoff (form suggests 2000 ms)p95 of channel created → ringing (180/183) inside FreeSWITCH
MOS (FreeSWITCH, all legs)min_mos≥ 4.0average FreeSWITCH MOS of every SIP leg with received audio
MOS drop over timemax_mos_drop≤ 0.3MOS of the first window − MOS of the last window, both with at least 3 legs with audio
Registration successmin_success_rate≥ 95 %REGISTER ok ÷ (ok + failed) × 100
Registration failures/min, worst windowmax_reg_failures_per_min≤ 10 /minthe highest failures ÷ minutes of any window (an open window shorter than 60 s doesn't count)
Idle CPU, lowestmin_idle_cpu≥ 20 %FreeSWITCH's lowest idle CPU of any second (skipped if this FreeSWITCH doesn't report it)
Internal legs, peakmax_internal_legsoff (form suggests 20)most loopback/other (non-SIP) channels open at once — catches dialplan loops

Why the lowest second for idle CPU: a short overload (a call loop, a burst) disappears in a 5-minute average, and FreeSWITCH's idle value is already smoothed, so one second isn't noise.

Call outcomes (answered / user / cancelled / failed), PDD and channel types: PBX watch.

Regression vs the baseline ​

Three optional checks compare the run with the baseline of its test (same profile, type and schedule; a scheduled run without a schedule baseline uses the hand-run one). All are off by default.

CheckKeyTest typesValue
Setup p95 vs baselinemax_setup_p95_increase_pct (≥ 0)call, busy hour(setup p95 − baseline's) ÷ baseline's × 100; negative = faster
Answer rate vs baselinemax_answer_rate_drop (0..100, points)call, busy hourbaseline's answer rate − this run's, in percentage points
Limit vs baselinemax_limit_cps_drop_pct (0..100)find the limit (run verdict)(baseline's limit − this limit) ÷ baseline's × 100

A check passes when the value is at most the threshold, e.g. max_setup_p95_increase_pct: 30 allows up to 30 % slower. The note names the baseline run and both values (baseline run 20261101-…: 280 ms → 410 ms).

  • Skipped with the note no baseline for this test while the test has none, and when either run lacks the data (no setup samples, no limit found — the note gives the outcomes, a baseline of 0).
  • Frozen at the end of the run: the baseline in effect then is used and stored with the run (baseline_id in its summary); marking another baseline later doesn't re-judge old runs.

Optional source criteria (any run type) ​

These are off by default. They are offered in the form when the profile has the source, and checked for the run as a whole.

CheckKeyForm suggestsValueSkipped when
Kamailio restartsmax_kamailio_restarts0restarts of any Kamailio seen during the runKamailio source off, or no data
Kamailio shared memorymax_kamailio_shm_pct80 %highest shared-memory use of any Kamailio at any second (note: start → end %)no shared-memory stats
Kamailio WebSocket failuresmax_kamailio_ws_failed_pct1 %failed WebSocket handshakes + failed connections ÷ attempts × 100 (websocket module, all Kamailios)no WebSocket stats (module not loaded), or fewer than 10 attempts
rtpengine restartsmax_rtpengine_restarts0restarts of any rtpenginertpengine source off, or no data
rtpengine packet errorsmax_rtpengine_error_pct1 %packet errors ÷ relayed packets × 100 (all traffic)no packets relayed
rtpengine timeoutsmax_rtpengine_timeouts0sessions closed because media stopped without a hangup (all traffic)no data
rtpengine ports in usemax_rtpengine_ports_pct80 %fullest media port range at any secondrtpengine reported no ports
Stuck callsmax_suspect_calls0distinct legs flagged by the stuck-call check (note: peak at once)check off (stuck_calls.enabled, needs ESL)

The rtpengine and stuck-call criteria are not offered for registration tests (no calls). Note that rtpengine numbers are host totals: other traffic through the same rtpengine counts too. More: Kamailio metrics, rtpengine metrics, Stuck calls.

Choosing thresholds ​

  • Setup time depends on your path (TLS, a VPN, the authentication round trip, the callee's leg). Measure a baseline at low load first and set the threshold comfortably above it, so a limit run fails on load, not on latency. The hint "Setup takes time even at the lowest load" (What to look at) says when that is the case.
  • MOS 4.0 is the usual target; the tester's E-model estimate tops out at about 4.4, FreeSWITCH's at 4.5 — see Audio quality.
  • Storm runs: keep Storm recovery strict, relax Response time p95 (a burst of REGISTERs queues at the registrar) — see Criteria for storm runs.
  • Watch thresholds depend on your users: a PBX with many unanswered calls has a low answer rate but can still have a high call success.

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