Appearance
Calls between test extensions
In this mode a call test doesn't dial a number the PBX answers itself. It calls other test extensions that PBXsight registers as virtual phones. The PBX handles each call like an internal call between two desk phones: it looks up the callee's registration, creates a second (B) leg, rings the phone and bridges the audio.
It answers: how does the PBX handle real extension-to-extension calls at this rate — two legs per call, registrar lookups, the dialplan's internal routing, audio relayed both ways? Use it when an echo test is too simple a load: the B leg roughly doubles FreeSWITCH's work per call, and the media relay (rtpengine, if any) carries four streams per call instead of two. It is also the mode the busy hour test is built on, and an option of Find the limit.
It is selected on New test → Call load with Destination: Test extensions (virtual phones answer). Everything not described here (pacing, ramp-up, timers, the INVITE itself, stopping) works as in Calls to a number — read that page first.
First step: run a few calls between test extensions before raising the rate.

Run it
- New test → Call load; pick the extension set.
- Destination: Test extensions (virtual phones answer). Callers 5, Callees (virtual phones) 5, Target CPS 1, Total calls 10.
- Start call test. The callees register first (the yellow test starting card), then the calls run.
- Read Pass / fail, the one-way quality per direction and the Virtual phones (callees) card — see Read the result.
How the extension set is split
The selected extension set is used from the top:
set: ext 1 … ext C | ext C+1 … ext C+N | (rest unused)
callers (C) callees (N)- Callees are the
Nextensions right after the callers. They register from the tester and answer. - Callers are the first
Cextensions. With Callers = 0, every extension not used as a callee calls (set size − N). - Both groups register as virtual phones; nothing has to be configured on the PBX beyond the extensions themselves (see Test extensions on the PBX).
Calls only go within a domain (tenant): callers and callees of the same domain are paired round-robin, so every caller and every callee is used. A caller whose domain has no callee can't be paired, and the start is refused (see validation).
How the pairing works
Within each domain the tester builds a list of caller → callee lines: max(callers, callees) lines, rounded up to a multiple of the callees, line i = caller i mod C → callee i mod N. The caller engine walks that list round-robin. Because the list length is a multiple of the callees, a callee is dialled again only after all other callees of the domain were dialled — no early reuse at the wrap-around.
Example, one domain, 20 callers, 8 callees: ⌈20 ÷ 8⌉ × 8 = 24 lines. Caller 1 → callee 1, …, caller 8 → callee 8, caller 9 → callee 1, …, caller 20 → callee 4, caller 1 → callee 5, … caller 4 → callee 8.
What happens on the wire
Before the first call: all phones register
- The callees register first, then the callers, together at up to 10 per second (
min(10, safety.max_registration_rate)). Meanwhile the Dashboard and New test show Test starting with the progress and a Stop button. - Every phone is its own SIP user agent with its own connection (TCP/TLS) or socket (UDP), registered through the run's SIP target, with digest auth and
User-Agent: pbxsight/<run id>.
| Callee phones | Caller phones | |
|---|---|---|
Expires sent | 300 s | 3600 s |
| Re-REGISTER | at a random 60–90 % of the granted expiry (phones that registered together don't refresh together) | the same |
| Keepalive (TCP/TLS) | CRLF every 25 s | CRLF every 25 s |
| Lost connection | detected within 1 s, reconnect + REGISTER; retry every 10 s on failure | the same |
| Incoming INVITE | answered (below) | 480 Temporarily Unavailable |
| Media | the phones' own media engine | the callers' media engine |
- Callers whose phone didn't register place no calls; callees that didn't register are left out of the pairing. If no callee or no caller registered, the start is refused (422) with the most common reason, e.g.
none of the 20 callee extensions registered via 10.0.0.10 (REGISTER: 403 Forbidden: 20).
One call
caller phone PBX (FreeSWITCH) callee phone
INVITE ─────────────────▶
◀──────── 407 / ACK / INVITE + credentials
INVITE (B leg) ───────────────▶
◀─────────────────── 180 Ringing
◀──────────────────── 200 OK (SDP)
◀──────────── 200 OK ACK ──────────────────────────▶
ACK ────────────────────▶
… audio both ways: caller → callee and callee → caller, measured one way each …
BYE (after the hold) ───▶ BYE ─────────────────────────▶- The caller's INVITE goes to
sip:<callee>@<domain>over the caller phone's registration connection, tagged like every test call (User-Agent: pbxsight/<run id>,X-PBXsight-Run,X-PBXsight-Call: <Call-ID>). - The callee phone answers at once:
180 Ringing, then200 OKwith its SDP (retransmitted until the ACK arrives). There is no ringing delay, so the setup time is the PBX's, not a person's. - Who may call a callee: an INVITE that carries this run's
X-PBXsight-Run, or whose From user is one of the run's callers. Anything else gets 603 Decline — a stray real call never gets answered by a test phone. - Codec: the callee answers with the offered codec (the run's codec); an unusable offer gets
488 Not Acceptable Here. A callee answers in the media mode of the profile (SRTP with its own SDES key insrtpmode). - Hold and hang-up: the caller sends BYE after the hold. If that BYE never reaches the callee, the callee hangs up itself 30 s after the hold (counted as "hung up by the phone" on the Virtual phones card — a sign that BYEs get lost).
- Re-INVITEs inside the call (session timers, hold) are answered with the phone's current SDP; the call goes on.
- A callee phone answers every INVITE it gets, even while already in a call (no own busy limit). Whether a second call reaches it is the PBX's decision: FreeSWITCH may answer
486 Busy Herefor an extension that is in a call. In this test type such a 486 is a failure (only the busy hour test classifies it as "busy"), so size the callees as described below.
Media: one way per direction
Both media engines run in PBXsight on the same machine:
- The callers' engine uses
tester.media_portand the following ports (default 4 sockets: 16000, 16002, 16004, 16006; RTCP on each + 1). - The phones' engine starts right after:
tester.media_port + 2 × tester.media_sockets(default 16008, 16010, 16012, 16014; RTCP + 1). See Ports and firewall.
The callee's stream is linked to the caller's stream by the X-PBXsight-Call value the PBX passes on to the B leg. Each side sends the 400.5 Hz test signal and measures what arrives from the other side: loss, jitter, one-way delay (both clocks are the same machine, so one-way delay is exact) and a MOS estimate per direction:
| Direction | Measured at |
|---|---|
| caller → callee | the callee phone's engine |
| callee → caller | the caller's engine |
The round-trip check uses the sum of both one-way p95 delays. If the PBX doesn't forward X-PBXsight-Call to the B leg, the streams can't be linked and the one-way delay isn't measurable (loss and MOS still are). Details: Audio quality and MOS.
Work out how many callees you need
A callee is busy for the call's setup plus its hold. At a steady rate the calls in progress are about CPS × hold, so:
callees needed ≈ CPS × hold (more is better; the limit test asks for CPS × (hold + 5 s))
With fewer callees, a callee is dialled while still in its previous call; the PBX may answer 486 and the call counts as failed. The form warns: "Up to N concurrent calls but only M callee(s): the PBX reports an extension that is already in a call as busy (486)." Lower CPS or hold, set Max concurrent calls ≤ the callees, or add callees.
safety.max_virtual_phones (default 100) caps the callees, which caps the load: 100 callees at a 30 s hold carry about 100 ÷ 30 ≈ 3.3 CPS.
Worked example: 40 callers → 30 callees, 1 CPS, 20 s hold, 5 minutes
Set of 70 extensions, one domain. Settings: Callers 40, Callees 30, Target CPS 1, Hold 20 s, a duration of 5 min, media srtp, G.722.
- Phones: 30 callees + 40 callers = 70 register at 10/s → about 7 s before the first call.
- Concurrent: 1 × 20 = 20 calls up, below the 30 callees (no 486 risk).
- Pairing: max(40, 30) = 40, rounded up to a multiple of 30 → 60 lines; a callee is dialled every 30 s on average, its call lasts ~20 s.
- Calls: 1 × 300 = 300; FreeSWITCH sees 600 legs (A + B).
- Estimated (server): 300 + 20 + 10 + 5 + (30 ÷ 10 + 8) + 8 = 354 s. (The estimate counts only the callees' registration time; the callers register in the same phase.)
Choose the settings
Only what differs from Calls to a number is listed; Codec, Target CPS, Hold, Ramp-up, Ramp start CPS, Max concurrent calls and Run for are the same fields with the same rules.
| Field (UI) | API field (call.*) | Default (form) | Allowed | What it changes |
|---|---|---|---|---|
| Destination | destination_mode: "extensions" | number | number or extensions | Test extensions (virtual phones answer); disabled in the list when safety.max_virtual_phones is 0. destination is ignored. |
| Callers | callers | 0 | 0 … set size − callees; 0 = all not used as callees | The first extensions of the set; they place the calls. |
| Callees (virtual phones) | callees | 1 | 1 … safety.max_virtual_phones (default 100) | The next extensions after the callers; they register and answer. |
| Callers are / Callees are | caller_client / callee_client | sip | sip, webrtc | SIP phones or web clients, each side on its own: web ↔ web, web → SIP phone, SIP phone → web. |
Requirements and safety limits
| Limit / requirement | Default | Effect |
|---|---|---|
Profile media mode rtp or srtp | profile | The callees answer with real audio from the built-in media engine; none is refused. |
safety.max_virtual_phones | 100 | Upper bound of Callees; 0 switches the mode off. |
safety.max_registration_rate | 50 | All phones register at min(10, this) per second. |
safety.max_cps, max_concurrent_calls, max_duration | 50, 500, 2 h | As for calls to a number. |
Fix a refused start
On top of the call test rules, 422 with every problem at once:
| Rule | Why |
|---|---|
safety.max_virtual_phones > 0 | The profile owner can switch virtual phones off. |
Callees ≥ 1 and ≤ safety.max_virtual_phones | Each callee holds a connection and a media stream on the tester and the SIP entry point. |
| Callers ≥ 1 and callers + callees ≤ the set size | Callers first, then callees, all from the set. |
Media mode rtp or srtp | Calls need audio both ways from the media engine. |
| Every caller has a callee in its domain | Calls only go within a tenant: "N caller(s) have no callee in their domain … reorder the set or change callers/callees". |
Estimated duration ≤ safety.max_duration | estimated = placing time + hold + 10 s + 5 s + (callees ÷ 10 + 8 s) + 8 s. |
| At start: at least one callee and one caller registered | Otherwise no call can connect. |
Read the result
Everything a call test records, plus:
| Where | What |
|---|---|
| Virtual phones (callees) card | Registration: phones, registered now, the SIP target they registered through, REGISTERs ok / failed with reasons, connections lost. Calls received: INVITEs, answered (and not ACKed), rejected by code (e.g. 603 for foreign calls), ended by caller / by phone, BYE failed. Media: the phones' first RTP port. A per-direction table: calls (and silent ones), MOS, loss, jitter avg / p95, delay avg / p95. |
| Charts | MOS per direction, One-way delay (ms), Jitter & loss instead of the echo's round-trip charts. |
| Hangup causes (PBX), Where the setup time goes | With ESL: both legs; the setup breakdown pairs each A leg with its B leg (dialplan → callee leg → back to the caller), see Setup time. |

Set the pass / fail criteria
From the profile's criteria.call (the same defaults as an echo test), with the audio checks done per direction:
| Check | Default | Value |
|---|---|---|
| Answer rate | ≥ 99 % | answered ÷ (answered + failed); 486s are failures here |
| Setup time p95 | ≤ 500 ms | first INVITE → 200 OK at the caller |
| MOS (FreeSWITCH) | ≥ 4.0 | needs ESL |
| MOS (caller → callee), MOS (callee → caller) | ≥ 4.0 each | min_tester_mos |
| Packet loss (caller → callee), (callee → caller) | ≤ 1 % each | max_tester_loss_pct |
| Round trip p95 | ≤ 300 ms | sum of both one-way p95 delays |
Two more checks exist for this mode but have no default in criteria.call: Phone registrations (min_success_rate, the virtual phones' REGISTERs) and Busy (callee in a call) (max_busy_pct, only meaningful in busy hour). A direction where audio was sent but nothing arrived fails its checks. See Pass / fail verdict.
Avoid common mistakes
- Use extensions no real phone is registered on. The PBX rings every registered contact of an extension — a real phone on a callee account would ring along.
- The setup time includes the B leg. Compare it with an echo test to see what the second leg costs; the setup breakdown shows dialplan and callee-leg times separately.
- Callees too few → 486 failures, not a PBX problem. Watch the form's warning.
- Connections on the SIP entry point: callers + callees each hold one TCP/TLS connection for the whole run (70 phones = 70 connections from one address).
- Many callers register slowly: 1000 callers ≈ 100 s at 10/s before the first call. In total mode only as many callers register as there are calls.
- No one-way delay? The PBX didn't pass
X-PBXsight-Callto the B leg (it normally forwardsX-headers), or it transcodes. Loss and MOS are still measured.