Appearance
Registration load test
A registration test makes many test extensions REGISTER with the PBX at a rate you choose, keeps them registered for a while (re-REGISTER cycles) and un-registers them at the end. It places no calls.
It answers: can the registrar take this many devices, at this registration rate, and how fast does it answer? Use it before a call test (callers register first, so a broken registrar breaks every other test), after changing the registrar, the SIP entry point (Kamailio, an SBC) or the PBX's database, and to simulate a mass re-registration after an outage ("all phones come back at once").
First step: run a small registration with 2–3 extensions before anything bigger.

Run it
- New test → Registration load; pick the Extension set and Extensions to use (2–3 the first time, then 50, 500 …).
- Rate (reg/s) 5, Expires (s) 120, Run for a number of cycles, Cycles 3; keep Un-register (Expires: 0) at the end on.
- Check the Plan card on the right, then Start registration test.
- Read the result: the Pass / fail card (success rate, response time p95) and Registered on PBX — see Read the result.
What happens on the wire
Every extension is its own SIP user agent with its own connection (TCP/TLS) or socket (UDP), like a desk phone. Extensions are started at the configured rate: with 5 reg/s a new extension starts every 200 ms. Each extension then runs this sequence on its own:
REGISTER (Expires: E) ─▶
◀─ 401/407 (challenge)
REGISTER + digest credentials ─▶
◀─ 200 OK ← response time = first REGISTER → this 200
… wait the re-register interval, REGISTER again (same Call-ID, CSeq + 1) …
… after "cycles × interval" (or the duration) from its own first REGISTER:
REGISTER (Expires: 0) ─▶ (only with "Un-register at the end")
◀─ 401/407, REGISTER + credentials, 200 OKDetails that matter:
- One Call-ID per extension for the whole test; the CSeq rises with every REGISTER, as on a real phone. The Request-URI is
sip:<domain>, From/To are<user>@<domain>, the Contact carries the real local port of the connection. - Every request is tagged with
User-Agent: pbxsight/<run id>andX-PBXsight-Run: <run id>, so FreeSWITCH's events for these extensions are counted as test traffic. - Digest authentication answers both 401 and 407 with the extension's
auth_user(or the username when empty) and password. A second 401/407 after sending credentials means the credentials were rejected: the attempt fails with that code. - Timeout: no final response within 8 s counts as
timeout. On UDP the SIP stack retransmits per RFC 3261 (T1 = 500 ms) during that time. - Connections (TCP/TLS): opened on the first REGISTER, so the first REGISTER of an extension includes the TCP + TLS handshake and is slower than its re-REGISTERs. Each connection sends a CRLF keepalive every 25 s and is reopened if the peer closed it. The server certificate is not verified and no client certificate is sent.
- Requests from the PBX on an extension's connection — FreeSWITCH's
OPTIONSpings to registered contacts,NOTIFY,INFO,UPDATE,MESSAGE— are answered200 OK. Without that FreeSWITCH would consider the contacts dead. - A failed attempt doesn't end the extension: it keeps cycling and tries again at the next interval.
Timing: ramp, hold, un-REGISTER
Each extension stays registered for the hold time, counted from its own first REGISTER:
ramp = extensions ÷ rate
hold = cycles × interval (cycles mode) or the duration (duration mode)
estimated = ramp + hold + 8 s (last response) + 8 s (if un-registering)
Because each extension's clock starts at its own first REGISTER, the un-REGISTERs at the end are spread exactly like the ramp — there is no burst of 1000 un-REGISTERs in the last second. The flip side: all extensions are registered at the same time only if the ramp is shorter than the hold. The form warns when it isn't:
registered at once (peak) = min(extensions, ⌊rate × hold⌋ + 1)
In cycles mode an extension sends exactly cycles REGISTERs (at 0, interval, 2 × interval, …) and stays registered one more interval after the last one. In duration mode it sends ⌈duration ÷ interval⌉ REGISTERs.
Worked example: 200 extensions, 5 reg/s, 3 cycles
Settings: 200 extensions, rate 5 reg/s, Expires 120 s, re-register every 0 (= 90 % of 120 = 108 s), 3 cycles, un-register on.
- Ramp: 200 ÷ 5 = 40 s (the last extension starts 40 s after the first).
- Hold per extension: 3 × 108 = 324 s. Extension 1 registers at 0, 108, 216 s and un-registers at 324 s; extension 200 does the same 40 s later.
- Peak registered: min(200, ⌊5 × 324⌋ + 1) = all 200, from second 40 to second 324.
- REGISTER transactions: 200 × 3 = 600 (the Total REGISTERs in the plan), each with its challenge round, so ~1200 REGISTER requests, plus 200 un-REGISTERs (also challenged).
- Steady load once all are up: 200 ÷ 108 ≈ 1.9 REGISTERs/s. The initial burst is the ramp's 5/s.
- Estimated: 40 + 324 + 8 + 8 = 380 s (6 min 20 s).
If you set 1000 extensions at 2 reg/s with 1 cycle (hold 108 s) instead, the ramp takes 500 s — longer than the hold — so at most ⌊2 × 108⌋ + 1 = 217 are registered at once, and the form warns.
Choose the settings
| Field (UI) | API field (registration.*) | Default (form) | Allowed | What it changes |
|---|---|---|---|---|
| Extension set | extension_set_id (top level) | first set of the profile | a set of this profile | The accounts used. Sets are uploaded on the Extensions page. |
| Extensions to use | extensions | 0 | 0 … set size; 0 = all | Taken from the top of the set. |
| Rate (reg/s) | rate | 5 | > 0, ≤ safety.max_registration_rate (default 50) | New extensions started per second (the ramp). Re-REGISTERs follow each extension's own timer, not this rate. |
| Expires (s) | expires | 120 | 10 … 86400 | The Expires header sent. The registrar may grant less; the test keeps its own interval. |
| Re-register every (s) | reregister_interval | 0 | 0, or 1 … Expires | 0 = 90 % of Expires (rounded down, at least 1 s). Longer than Expires is refused: registrations would lapse between cycles. |
| Run for | mode | cycles | cycles or duration | How long each extension stays registered. |
| Cycles (registrations per extension) | cycles | 3 | ≥ 1 | Cycles mode: hold = cycles × interval. |
| Duration | duration | 10m | > 0 (e.g. 90s, 10m, 1h30m) | Duration mode: each extension stays registered this long from its first REGISTER. |
| Un-register (Expires: 0) at the end | unregister | on | on/off | Off: the registrations are left to expire on the PBX (useful to see expiry handling). |
The Pass / fail criteria below the plan and the start/schedule switch are shared by all test types (see New test).
Safety limits that apply
Safety limits are part of the PBX profile:
| Limit | Default | Effect |
|---|---|---|
safety.max_registration_rate | 50 reg/s | Upper bound of Rate. |
safety.max_duration | 2 h | The estimated duration (above) must fit. |
Fix a refused start
The server checks the request and answers 422 with every problem at once (the form shows them in red). The client shows most of them as warnings before you press Start.
| Rule | Why |
|---|---|
| Extensions ≤ the set size | You can't use accounts that aren't there. |
Rate > 0 and ≤ safety.max_registration_rate | Protects the registrar from a typo (500 instead of 5). |
| Expires 10 … 86400 s | Outside that range registrars reject or misbehave. |
| Interval ≥ 1 s and ≤ Expires | A longer interval lets registrations lapse between cycles, which would test expiry, not registration. |
| Cycles ≥ 1 (cycles mode), duration > 0 (duration mode) | Nothing to do otherwise. |
Estimated duration ≤ safety.max_duration | A run must not occupy the PBX longer than allowed. |
A run also needs a valid licence (otherwise 402) and no other run active (409: one run at a time for the whole app; the always-on watch runs beside it and doesn't count).
Stop a run early
Stop starts no new extensions. After 3 s the extensions still registered stop their cycles and un-REGISTER (when Un-register is on), paced at the run's rate (at least one per second), so a stop doesn't produce a burst either. Each un-REGISTER has its own 8 s timeout. The run is recorded as stopped.
The runner also stops a run by itself at its deadline: estimated duration + 3 s + 30 s (capped at safety.max_duration).
Read the result
Per second and over the run (the run page for a registration test):
| Tile / chart | Source | Meaning |
|---|---|---|
| Attempts | caller engine | REGISTER transactions started (one per extension per cycle; the challenge round is part of the same attempt). |
| 200 OK / Failed | caller engine | Final outcome of each attempt. Failures by SIP code, or timeout (no final answer in 8 s), transport_error, connect_error (the connection couldn't be opened). |
| Success rate | caller engine | 200 OK ÷ (200 OK + failed). |
| Response time | caller engine | First REGISTER → 200 OK, including the challenge round trip: min / avg / p95 / max per second, p95 over the run. |
| Registered on PBX | ESL events | Test extensions FreeSWITCH currently has registered (sofia::register / unregister / expire), with the peak. Needs the ESL connection. |
| Registered chart | ESL | The test extensions (test) and all registrations on the PBX, all tenants (all). |
| SIP responses | caller engine | Every response code received (challenges and un-REGISTERs included), plus timeout and other failure reasons. |
| Summary: Un-registered | caller engine | un-REGISTERs answered 200, and the ones that failed. |
| Summary: Peak 200 OK/s | caller engine | The most REGISTERs answered 200 in one second. |
| Summary: PBX peak registered, PBX register events | ESL | The most test extensions FreeSWITCH had registered at once (and all registrations), and the register / register-failure events it reported. |
The Kamailio card shows what the SIP entry point did meanwhile (when that source is on), see Kamailio metrics. Hints in What to look at are explained in hints.

Set the pass / fail criteria
From the profile's criteria.registration (changeable per test on New test):
| Check | Default | Value |
|---|---|---|
Registration success (min_success_rate) | ≥ 99 % | 200 OK ÷ (200 OK + failed) |
Response time p95 (max_response_p95_ms) | ≤ 500 ms | p95 of first REGISTER → 200 OK |
Storm recovery, worst (max_storm_recovery_s) | ≤ 30 s | web clients only, see below |
Unexpected WebSocket drops (max_ws_drops) | off | web clients only |
Optional: Kamailio restarts / shared memory when the Kamailio source is on. How checks combine into passed / failed / no verdict is on Pass / fail verdict.
Web clients: soak and storms
By default the extensions register as SIP phones (UDP / TCP / TLS, the profile's transport). Choose Clients: Web clients (WebRTC) (API registration.client: "webrtc") and they register like a sip.js browser app instead: SIP over WebSocket to the profile's WebSocket URLs (webrtc.ws_urls, spread round-robin), one connection per client. No calls are placed and no media ports are opened. It answers: do the WebSocket entry point and the registrar keep N web clients registered for hours, and how long do they take to come back when all connections drop at once?
First step: set the profile's WebSocket URL and press its Test connection — see Web clients › Connect the web clients.
Run a soak
- New test → Registration load, pick the extension set and Extensions to use (start with 10).
- Clients: Web clients (WebRTC). The run is then always a Duration (cycles mode is refused): e.g.
30mfor a soak. - Set Expires (s) as your web app does (e.g. 300) and leave Un-register (Expires: 0) at the end on.
- Start registration test. Afterwards read the Web clients card: unexpected drops should be 0.
The ramp is paced at the rate; after that each client keeps its registration on its own, as sip.js does:
- a CRLF keepalive on its WebSocket,
- a re-REGISTER at a random 60–90 % of the expiry the registrar granted (the Re-register every setting doesn't apply and is hidden),
- when its connection drops: reconnect (the loss is noticed within ~1 s) and REGISTER again at once; a failed REGISTER is retried after 10 s,
- a web client waits 32 s for the answer to a REGISTER, as sip.js does (its transaction timeout, 64 × T1), not the 8 s of a SIP phone. A registrar that is slow during a storm therefore shows up as long response times, not as timeouts.
When the duration ends the clients un-REGISTER, paced at the rate (with Un-register on). Stop works as for SIP phones. Unexpected drops that come back every N minutes usually mean an idle timeout on the proxy's TCP / WebSocket connections or on a load balancer between the clients and the proxy.
Run a storm
A storm makes the tester close every client's WebSocket at set times, as a network blip, a proxy deploy or a mass page reload would, and measures how long until all clients are registered again.
- Set up a web-client registration as for a soak, with a Duration long enough for the storms (e.g.
5m). - In the Storm section, tick Drop every web client's WebSocket at set times.
- Pick the mode — Reconnect or Page reload (see below) — and set First after (s) (e.g. 60), Every (s) (0 = once), Storms and Spread (s) (0 = all at once).
- Start, and read the Storms table on the run page: time to all is the number that matters.
Start with 10 clients and one storm, then raise the count: a storm is not paced by the rate, so 500 clients send 500 REGISTERs at once.
Reconnect or Page reload?
- Reconnect — the same client (same Call-ID and
+sip.instance) opens a new connection and re-REGISTERs with the next CSeq. This is sip.js reconnecting after a network blip or a proxy restart. The registrar replaces the contact; the number of bindings stays the same. - Page reload — a new client identity: new Call-ID, new
*.invalidContact host, the same+sip.instance/ reg-id, and no un-REGISTER for the old binding, which stays at the registrar until it expires. This is what a mass browser reload looks like: for up to Expires seconds the registrar holds two contacts per extension, and calls to the extension may fork to the stale one.
| Field (UI) | API field (registration.storm.*) | Allowed | Meaning |
|---|---|---|---|
| Mode | mode | reconnect, reload | reconnect: the same client (Call-ID, instance) reconnects its transport and re-REGISTERs with the next CSeq. Page reload: a new client identity — new Call-ID, new *.invalid Contact host, the same +sip.instance / reg-id — and no un-REGISTER for the old binding, which stays at the registrar until it expires. |
| First after | first_after_s | ≥ 10 s | After the end of the ramp. |
| Every | every_s | ≥ 0 s; 0 = once | Time between storms. |
| Storms | count | 1 … 20 | Number of storms. |
| Spread | spread_s | 0 … 60 s | Each client drops at a random moment within this time; 0 = all within the same second. |
The storms must fit into the duration (first_after_s + (count − 1) × every_s + spread_s ≤ duration), otherwise the start is refused (422, naming the field). A proxy's flood protection (e.g. Kamailio pike / ratelimit) may answer 503 or block the tester's address during a storm — that is a valid result, not a tester fault.
Detected storms. When at least 50 % of the registered clients lose their connection within 5 s without the tester closing it — a proxy restart or deploy, a network outage — the run records a storm with trigger detected and measures it the same way. Fewer server-side closes count as unexpected drops.
For every storm (the first 20 are listed, all are counted) the run records: start, trigger (reconnect, reload, detected), clients dropped, clients registered again, time until all were registered again (empty when not all came back), per-client recovery p50 / p95 / max (drop → 200 OK of its re-REGISTER), REGISTER failures during the recovery by code, and the clients not recovered within the recovery window (120 s, or until the next storm if that comes first). A storm late in the run keeps its window: when the duration ends while its clients are still coming back, the run waits for them (at most the rest of the 120 s) before it un-registers, so a storm right at the end isn't cut short.
Read the Web clients chart
On top of the tiles above (attempts, 200 OK, failed, response time — the storm re-REGISTERs included):
| Where | Meaning |
|---|---|
| Web clients chart | per second: clients registered now, WebSocket connections open (the lowest in that second: reconnects often finish within the second of the drop), connections lost (bars); storm starts marked |
| Web clients card | clients, URL(s), registered peak / lowest (after the ramp, outside recovery windows), unexpected drops, re-REGISTERs OK / failed |
| Storms table | one row per storm: trigger, dropped, recovered, time to all, p95, not recovered, top failure |
phones.log (run files) | registrations per URL, connection losses, storms |
In the API and JSON export: summary.registration.client (webrtc) and summary.registration.web (clients, urls, registered_peak, registered_lowest, ws_drops, conn_lost, rereg_ok, rereg_failed, storms[], storms_total, storms_incomplete, not_recovered, worst_recovery_s, storm_failures); samples web_registered, ws_open, ws_lost. Results shows a web clients chip; baselines are kept separately for SIP and web registration runs.
How to read the Web clients chart without misreading a storm:
- Open is the lowest number of open WebSocket connections in each second. Most reconnects finish within the second of the drop, so an average would hide the dip; the lowest value shows it — e.g. 500 → 0 → 262 → 474 → 500 for a 500-client storm. A dip during a storm is the storm, not a failure; what counts is how fast the line is back at the client count (time to all) and whether it gets there at all.
- Registered follows a moment later: a client counts again once its re-REGISTER got its 200 OK.
- Connections lost (bars) are per second: one tall bar = a storm, scattered small bars = unexpected drops.
The Kamailio card's WebSocket chart shows the same storm from the proxy's side, in Kamailio's own counters. Its numbers differ from the Web clients chart for good reasons: opened/s is a rate, Kamailio can count the old and the new connections together for one poll right after a storm, and connections opened before the run's measured part began are not in the run.

Criteria for storm runs
Checked only for web registration runs (SIP registration verdicts are unchanged):
| Check | Default | Value |
|---|---|---|
Storm recovery, worst (max_storm_recovery_s) | ≤ 30 s | the longest time until all clients were registered again; a storm where not all came back fails; skipped without storms |
Unexpected WebSocket drops (max_ws_drops) | off | connections lost that the tester didn't close, outside detected storms |
The registration checks above — Registration success and Response time p95 (max_response_p95_ms, default 500 ms) — apply to a storm run too, and the storm's re-REGISTERs are part of the p95.
Worked example: a storm that recovers fast but fails the p95
100 web clients, one reconnect storm. All 100 are back in 3.5 s, with no failed REGISTERs: Storm recovery passes easily (≤ 30 s). But 100 REGISTERs arrived within a second, the registrar queued them, and the run's REGISTER response p95 rose to about 2.5–2.9 s — so a Response time p95 of 800 ms (or the 500 ms default) fails. Nothing is broken: the clients waited (sip.js-like clients wait up to 32 s) and all came back. The p95 criterion was made for steady registration, not for a burst.
Suggested criteria for storm runs:
- Keep
max_storm_recovery_sand set it to what your users accept (e.g. 30 s, or less for a busy contact centre). It is the storm's headline number. - Relax
max_response_p95_msfor storm runs (e.g. 5000 ms — well under the clients' 32 s), or run the storm separately from a steady soak and keep the strict p95 for the soak. Keep Registration success at 99 %: a REGISTER that failed is a real failure even in a storm. - Set
max_ws_drops(e.g. 0) for long soaks: an unexpected drop means the proxy or the network closed connections the clients wanted to keep.
Override criteria per run in the Pass / fail section of New test, or save them as the profile's defaults (criteria.registration). Baselines are kept separately for SIP and web registration runs.
Try it locally: make fake-pbx listens on wss://127.0.0.1:5093/ws; go run ./cmd/fake-pbx -ws-drop-every 30s closes all its WebSocket connections every 30 s, which a soak shows as detected storms.
Avoid common mistakes
- The first REGISTER is the slow one. Over TLS it includes the handshake. With few cycles the p95 is dominated by first REGISTERs; with many cycles by re-REGISTERs. Compare runs with the same cycle count.
- Use dedicated test extensions. If a real phone is registered on the same account, the test's un-REGISTER (
Expires: 0for its own Contact) leaves the phone's registration alone, but the PBX sees two contacts meanwhile. - Registrations that expire on the PBX during the test (Registered on PBX drops while the tester shows no failures) point at a registrar that grants a shorter expiry than requested, or at OPTIONS pings that don't reach the tester — check NAT settings and the transport.
- Connection limits. Each extension holds one TCP/TLS connection for the whole test. A SIP proxy has a connection limit (Kamailio:
tcp_max_connections/tls_max_connections); 1000 extensions need 1000 connections from one source address. - Mass re-registration. To simulate "all phones come back after an outage", use a high rate, 1 cycle and a short hold: the result is the registrar's behaviour under a burst.
- Leaving registrations behind. With Un-register off the test leaves contacts that expire on their own after
Expiresseconds; a following call test with the same extensions then registers again on top.