Appearance
First start
This page walks through the first half hour after installation: creating the first admin, securing the two files you must never lose, entering the licence, pointing PBXsight at your PBX and running two tiny tests that prove the whole path works. Do it in this order: every later test depends on the earlier steps being right, and a problem is much easier to find with one extension and one call than with five hundred.
First step: open the UI in a browser and create the first admin (step 1).
1. Create the first admin
On the very first start there are no users, and nobody can use the app until the first admin exists. Open the UI (http://<machine>:8080, or http://localhost:8080 on the machine itself): it shows Create the first admin.

On the app's machine (the browser connects from
localhost/127.0.0.1), the page asks only for a user name (pre-filledadmin) and a password twice.From another machine (a headless VM, a container, a server in the rack), the page also asks for the Setup token. This stops anyone who reaches the port first from claiming the install. The app prints the token in its log at every start while there are no users:
shjournalctl -u pbxsight | grep setup_token # .deb / .rpm docker compose logs pbxsight | grep setup_token # DockerThe log line reads
no users yet: create the first admin at http://localhost:8080/setup on this machine; from another machine open /setup and enter the setup token setup_token=…. The token is new at every start; use the one from the current run of the app. Five wrong tokens from one address block further tries for 15 minutes.
A request that came through a reverse proxy never counts as "this machine", even if the proxy runs on the same host: it needs the token too.
Password rules: at least 10 characters (a passphrase is fine), not the same as the user name. After Create admin and log in you land on the Users page, where you can add colleagues as admin, operator or viewer right away. Roles and everything else about accounts: Users and roles.
Plain HTTP from another machine
If the page says This connection is not encrypted (HTTP), the password you type crosses the network in plain text. That is acceptable on a trusted LAN or VPN; otherwise turn on HTTPS first (HTTPS and remote access).
2. Back up the database and the key — together
On the first start PBXsight creates two files next to each other (package and Docker installs: /var/lib/pbxsight/; the plain binary: the folder you started it in):
| File | Holds |
|---|---|
pbxsight.db | everything: users, PBX profiles, extension sets, runs, schedules, the licence key |
pbxsight.key | the key that encrypts the secrets inside the database (profile settings with the ESL password and agent tokens, SIP passwords of test extensions) |
The app logs created the secret key file that encrypts stored passwords and tokens; back it up together with the database when it makes the key. A database without its key starts only if it has no encrypted values yet — otherwise the app refuses to start, and the profiles and extension sets in it can't be read. Include both files (and the runs/ folder with the per-run logs) in your backup now, before you store any secret. How to back up safely while the app runs and how to move an install: Secrets at rest and backups.
3. Enter the licence key
Everything works without a licence except starting tests and schedules. Until a key is entered, a banner on every page says No licence key entered and Start on New test is disabled.
Ask for a 14-day trial key at contact@pbxsight.com, then, as an admin, open Licence (the banner's link, or your name in the top bar → Licence), paste the key and click Save key. The key is activated with the licence server (outbound HTTPS to licence.pbxsight.com; set HTTPS_PROXY behind a proxy) and then checked once a day; no PBX data leaves your network. Without internet access, ask for an offline key. Details: Licence.
4. Prepare the PBX
Before PBXsight can test anything, the PBX needs test extensions, and for PBX-side metrics PBXsight needs to reach FreeSWITCH's Event Socket. Do these first:
- Test extensions on the PBX — a dedicated tenant (domain) with extensions only the tester uses, plus the echo test number.
- ESL access — let the tester's address into FreeSWITCH's Event Socket. Optional, but without it you get no PBX-side numbers.
- If calls enter through Kamailio or another proxy: Kamailio — flood protection, TLS, headers. Optional metrics from Kamailio and rtpengine come later (Kamailio, rtpengine and the agent).
5. Create a PBX profile
A PBX profile is one system under test: where SIP goes, which media to send, how to reach ESL, safety limits and default pass/fail criteria. As an admin, open Profiles → New profile. The first profile is pre-named default; rename it to something like dev or qa.

The minimum to fill in:
| Field | Typical value | Why |
|---|---|---|
| SIP entry point → Host / Port / Transport | sip.example.com, 5061, TLS — or FreeSWITCH itself, 5060, UDP | where every REGISTER and INVITE goes |
| Default domain | loadtest.example.com | the SIP domain for CSV rows that leave the domain empty |
| Media → Mode | SRTP behind a relay that forces SRTP on TLS clients; RTP to FreeSWITCH directly | what call tests send during the hold; None sends no audio |
| ESL → Host / Port / Password | FreeSWITCH's LAN/VPN address, 8021, your ESL password | PBX-side metrics |
| Safety limits → Allowed call destinations | 9196 and *9196 (common echo-test numbers) | calls to a number may only go to these |
SIP from and Media from can stay empty: the tester then uses the address of the interface that routes to the SIP host. Set them when SIP and RTP must leave through a specific interface (e.g. RTP over a VPN). Before saving, press Test connection on the SIP entry point and ESL cards (and on Kamailio / rtpengine if you use them): each lists the steps it checked — DNS, connect, TLS, OPTIONS, login — and what to fix (Test connection). Click Create profile; the header then shows the ESL state (connected, connecting, or an error with a hint). After uploading an extension set (next step), come back and test once more with Test REGISTER with that set. Every field is explained in PBX profiles.
6. Upload an extension set
Tests take their SIP accounts from an uploaded CSV, one per profile. On Extensions, upload a file like:
csv
username,password,domain
1000,Secret-1000,loadtest.example.com
1001,Secret-1001,loadtest.example.com
1002,Secret-1002,loadtest.example.comThe whole file is checked first; if any line is wrong, nothing is imported and each problem is listed with its line number. Format details: Test extensions on the PBX.
7. Check the Dashboard
Until everything is set up, the Dashboard starts with a Get started checklist: PBX profile → FreeSWITCH event socket (ESL) → Extension set → First echo test, each with a link to the page that does it. Steps 5 and 6 above tick the first three; the echo test in step 9 ticks the last one, and the card disappears (Dashboard).
The Dashboard also shows, for the selected profile:
- FreeSWITCH ESL:
connected(ordisabledif you turned ESL off). Otherwise an error with the likely cause — see ESL access. - Caller → Call media: the mode you chose (e.g. SRTP (built-in engine)).
- Target: the SIP host, and for a host name the addresses it resolves to; SIP from / Media from (
autowhen empty).
8. First run: registration with 2–3 extensions
On New test → Registration load, choose the set, Extensions to use 3, Rate 1 reg/s, Cycles 1, keep the rest, and start.
What good looks like:
- every attempt ends in 200 OK; Failed stays 0;
- response times in the tens to low hundreds of milliseconds (the time includes the 401/407 challenge round trip);
- Registered on PBX (from ESL) follows the tester's count, then drops back after the un-REGISTER.
If REGISTERs time out, the transport or port is wrong, or a firewall / flood protection blocks the tester. A 401/407 after credentials means a wrong password, user or domain in the CSV. A 403 usually means a disabled extension or the wrong domain. More in Troubleshooting.
9. First call: one call to the echo test
On New test → Call load, Destination *9196 (or 9196), Callers 1, Total calls 1, Hold 10 s.
What good looks like on the run page:
- the call is answered, setup time well under the 500 ms default criterion;
- the Media path card says Audio reaches FreeSWITCH on 1 of 1 reported calls;
- the tester's round-trip MOS close to 4.4 (the estimate's ceiling is about 4.41 on a clean path; see Audio quality and MOS), loss 0 %;
- with ESL, a FreeSWITCH MOS is present too.
If the call is answered but FreeSWITCH received no audio, check the media mode first (a relay that forces SRTP drops plain RTP); if no audio comes back, check Media from and that the tester's media ports (UDP 16000–16015 by default) accept traffic from the PBX side — see Ports and firewall.
10. Scale up step by step
Once one call is clean, grow one thing at a time and watch the PBX while you do it:
- a few calls at 1 CPS with several callers, then a few minutes at 2–3 CPS;
- more concurrent calls (longer hold) to check capacity, separately from the call rate;
- Calls between test extensions when you want two legs per call and one-way quality;
- Find the limit to step the rate up automatically until a criterion breaks.
The profile's safety limits (defaults: 50 calls/s, 500 concurrent calls, 50 registrations/s, 100 virtual phones, 2 h per test, 24 h per watch) are enforced by the server, so a typo in a form can't flood the PBX. Raise them on the profile when your PBX is sized for more. Choosing a test helps pick the next test.
Only test systems you own
A load test looks like an attack to the systems it passes. Test only PBXes you run or are allowed to test, and tell whoever watches them before a big run.