Appearance
Troubleshooting
This page goes from what you see to what is likely wrong and how to fix it. Messages in quotes are the exact texts the app shows or logs, so you can search this page for them.
Before the first run, press Test connection on each card of the profile page: it names the failing step and the fix (see Connection test messages). After a run, start with the run page: SIP responses, Hangup causes, the Media path card, What to look at, and the log tabs (Caller log, Phones log) point at the cause in most cases. The Dashboard shows the state of every source of the selected profile with a concrete hint. Still stuck? Send a support bundle.
First step: search this page (Ctrl/Cmd + F) for the exact message you see.
Connection test messages
What the Test connection buttons on the profile page say, and what to do.
| Step: message | Cause | Fix |
|---|---|---|
| resolve: "DNS: no such host sip.example.com" | Typo, or the name is only known to another DNS server (VPN, internal DNS) | Fix the host, connect the VPN, or enter the IP address |
| connect: "connection refused by 10.0.0.5:5061: nothing listens for TLS there (wrong port or transport?)" | Wrong port, or the proxy doesn't listen on that transport | Use the proxy's port for that transport (often 5060 UDP/TCP, 5061 TLS) |
| connect: "timed out connecting to 10.0.0.5:5061 (firewall/VPN?)" | A firewall drops the packets, the VPN is down, or the host is off | Open the port for this machine; check the route / VPN |
| connect: "TLS handshake failed: … (is port 5060 TLS?)" | The port speaks plain SIP (or something else), not TLS | Set the transport to TCP/UDP, or use the TLS port |
| connect: warning "the certificate has expired" | The server's certificate is past its end date | Renew it; the tester doesn't verify certificates, but real phones do |
| OPTIONS: warning "403 Forbidden … reachable but doesn't answer OPTIONS from here" | The proxy refuses OPTIONS from unknown sources — common, and harmless | Nothing; test with an extension set to try REGISTER |
| OPTIONS: "no answer to OPTIONS within 5s: nothing answers on UDP …" | Wrong port or transport, a firewall, or the server ignores this address (flood protection, ACL) | Check port and transport; whitelist the tester's IP |
| OPTIONS: "503 … reachable but refuses requests" | The proxy has no healthy PBX behind it | Check FreeSWITCH and the proxy's dispatcher |
| REGISTER: "authentication failed for 1001@example.com (403 Forbidden): check the password in the extension set" | Wrong password, auth user or domain in the CSV; or the extension is disabled | Fix the CSV and upload it again; check the extension on the PBX |
| REGISTER: "the registrar asked for credentials again after the digest answer (407/401 loop)" | The credentials are not accepted by a proxy that challenges with 407 | Check auth user and password; the domain must be the realm the proxy expects |
| REGISTER: "the registrar doesn't know 1001@example.com" (404) | Wrong domain (tenant) | Set the domain in the CSV or the profile's default domain |
| REGISTER: "a run is active on this profile" (409) | A test runs on this profile; a test REGISTER could collide with its phones | Wait for the run to end, or test OPTIONS only |
| ESL connect: "connection refused by …: check listen-ip/listen-port in event_socket.conf.xml" | ESL listens on 127.0.0.1 only, or on another port | listen-ip = an address reachable from the tester (ESL access) |
| ESL connect: "no response from …: host unreachable or a firewall drops the ESL port" | Firewall or VPN | Open TCP 8021 from this machine |
| ESL login: "ESL password rejected" | Password differs from event_socket.conf.xml | Type the right password in the form and test again |
| ESL login: "FreeSWITCH closed the connection before authentication" | This machine's IP is not in apply-inbound-acl | Add it to the ACL, reloadacl |
| Kamailio HTTP: "HTTP 404: is xhttp/jsonrpcs loaded at this path?" | Wrong path, or the xhttp route doesn't call jsonrpc_dispatch() | Use the path of your xhttp route (e.g. /RPC) (Kamailio) |
| Kamailio HTTP: "HTTP 403: Kamailio refused it …" | The RPC route's IP check or method allow-list | Allow this machine's IP and the methods core.*, stats.fetch |
| Kamailio HTTP: "HTTP 401: Kamailio wants credentials" | The route asks for basic auth | http://user:password@host:port/RPC |
| rtpengine token: "agent token rejected (HTTP 401)" | The token differs from the agent's token / token_file | Enter the agent's token (or put it in the URL) |
| rtpengine token: "agent refused this machine (HTTP 403)" | The agent's allow list | Add this machine's IP to the agent's allow list |
| rtpengine health: warning "API 3 adds the rtpengine host's CPU" or "per-call data and the rtpengine host's CPU need API 3" | An older pbxsight-agent | Update the agent |
| rtpengine ng / metrics: "not configured on the agent" (warning) | The agent has no ng address / metrics URL for rtpengine | Set them in the agent's config (rtpengine and the agent) |
| rtpengine ng / metrics: "the agent can't reach it: …" | rtpengine is down, or the agent's address for it is wrong | Check rtpengine and the agent's config |
Support bundle
For a bug report, an admin downloads one zip and attaches it to the e-mail to support: Settings → Support bundle (optionally pick the run the problem shows in), or Support bundle on a run page (includes that run). It contains:
| File | Content |
|---|---|
manifest.json | app version and build, Go version, OS / architecture, uptime, when and by whom it was made, the number of profiles and runs, extension set names and sizes |
config.yaml | the effective app configuration, secrets replaced by <redacted> |
profiles/<name>.yaml | every profile, secrets replaced by <redacted> |
app.log | the recent app log since the last start (kept in memory, the last ~5000 lines); older logs are in the system journal or docker logs |
license.json | licence state, plan, customer, end date, user limit — never the key |
health.json | each profile's ESL, Kamailio and rtpengine connection state |
run-<id>/report.html, run.json | with a run: its HTML report, summary and parameters (no per-second samples) |
No secrets are included: the ESL password, agent tokens, credentials inside URLs and the database secret key show as <redacted> (so you can see a value was set); extension passwords and the licence key are not in the bundle at all. The bundle is built in memory and only downloaded — nothing is uploaded. The download is recorded in the activity log (support.bundle).
SIP and registration
| Symptom | Likely cause | Fix |
|---|---|---|
Every REGISTER/INVITE ends as timeout, no response at all | Wrong transport or port (e.g. the proxy accepts TLS only), a firewall, or the proxy's flood protection blocking the tester | Check Transport and SIP port of the profile (TLS usually 5061); check the proxy's log; whitelist the tester's address in pike/htable bans/fail2ban |
connect_error / transport_error in the SIP responses | TCP/TLS connection refused or broken: nothing listens on that port, or a TLS-only listener got TCP | Same as above; try openssl s_client -connect sip.example.com:5061 from the tester |
| Responses stop mid-run; timeouts grow with the rate; the next run gets nothing for a while | Flood protection on the proxy (a load test looks like a flood from one IP) | Whitelist the tester, see Kamailio |
401/407 again after sending credentials (counted as rejected credentials) | Wrong password, auth_user or domain in the extension CSV | The domain must be the tenant's SIP domain (realm); fix the CSV and upload it again |
403 Forbidden on REGISTER | Extension disabled, wrong domain, a registration ACL on the sofia profile — or the proxy itself rejects the sender | Check the extension on the PBX; with Kamailio metrics on, the Kamailio card shows replies Kamailio sent itself (rejected by Kamailio) |
Over UDP: virtual phones register, but calls to them time out / 480 | The tester's firewall or NAT drops INVITEs arriving at the phones' UDP ports after the state expired | Allow UDP from the entry point to the tester, or use TCP/TLS (Ports) |
Registered on PBX stays 0 while REGISTERs get 200 | ESL disconnected, or FreeSWITCH's events aren't matched to the test | Check the ESL state; the proxy must pass X-PBXsight-Run and User-Agent: pbxsight/<run>; CSV domains must match the tenants; Sofia profile of the profile |
too many open files in the Caller or Phones log | One socket per test extension hits the process limit | Plain binary: ulimit -n 65536 in the shell that starts it. The packaged service and the Docker compose file already set 65536 |
| Many test extensions still registered after a run | The app was killed before it could un-register them | They expire on their own: caller phones after 1 h, callee phones after 5 min |
| The proxy logs thousands of TLS connections | Expected: every registered test extension keeps one connection, like a phone | Raise the proxy's connection limits for big tests (Kamailio tcp_max_connections, tls_max_connections) |
Starting a test
A refused start is answered with the reason; the New test form shows every problem at once.
| Message | Cause | Fix |
|---|---|---|
| "a test is already running; stop it first" | One test or watch at a time per installation | Wait or stop the running one |
| "the test was not started: No licence key entered: tests and schedules can't start. …" (402) | No valid licence | An admin enters a key on the Licence page (Licence) |
| "the test was not started: The trial licence ended on 2026-03-14: …" (402) | Trial or subscription ended | Enter the new key; results stay readable meanwhile |
| "destination "1234" is not allowed (safety.allowed_destinations: [*9196 9196])" | Only listed numbers may be dialled | Add the number to Allowed destinations of the profile |
"cps 80 exceeds safety limit safety.max_cps (50)" (and the same for other safety. limits) | The request is above a safety limit of the profile | Lower the request, or raise the limit on the Profiles page |
| "estimated duration 2h10m0s exceeds safety limit safety.max_duration (2h0m0s)" | Ramp + calls + hold (+ phone registration) is longer than allowed | Shorter test, or raise max_duration |
| "calls between test extensions need the built-in media engine (the profile's media mode rtp or srtp, now "none")" | Answering phones need audio | Set the profile's media mode to rtp or srtp |
| "calls between test extensions are disabled (safety.max_virtual_phones: 0)" | Virtual phones switched off for this profile | Set Max virtual phones above 0 |
| "extension set not found; upload one on the Extensions page" / "extension set … belongs to another profile" | No set, or a set of a different profile selected | Upload a CSV for this profile on Extensions |
| "profile not found: choose a PBX profile (there are 3)" | An API request without profile_id while several profiles exist | Send profile_id |
| A test with test extensions sits in Starting for a long time | The virtual phones register first, at up to 10 per second (1000 phones ≈ 100 s) | Normal; Stop works in this phase too |
Calls
| Symptom | Likely cause | Fix |
|---|---|---|
Calls get 404 or 480 | The destination doesn't exist in that tenant's dialplan (9196 vs. *9196) | Use the echo number your dialplan has (9196 in vanilla FreeSWITCH, *9196 on some platforms); it must exist in the test domain |
Calls get 486 / USER_BUSY (calls to a number) | The caller's concurrent-call limit on the PBX (a per-extension limit in the dialplan or management GUI) is reached | Use more callers (calls are spread round-robin) or raise the limit |
486 in calls between test extensions / busy hour | A callee already in a call: counted as busy, not failed | Expected in busy hour; check with max_busy_pct if it matters |
| Setup p95 above 500 ms at low load | Normal latency of the path (TLS, proxy, dialplan, database lookups) — not necessarily overload | Read Setup breakdown (before FreeSWITCH vs. inside it) and the hint "Setup takes time even at the lowest load"; adjust max_setup_p95_ms to your baseline |
| Setup time grows steadily within a step or window | A queue: some component serves fewer calls per second than offered | What to look at names the component (FreeSWITCH CPU, Kamailio waiting, rtpengine) — see hints |
| A call that the PBX never answers to CANCEL stays up ~1 minute | The SIP transaction runs out its timers | Harmless; it ends by itself |
Audio and media
| Symptom | Likely cause | Fix |
|---|---|---|
Hangup cause MEDIA_TIMEOUT | No audio reached FreeSWITCH during the hold | Use media mode rtp or srtp (none sends no audio) for holds longer than FreeSWITCH's media timeout |
| Media path: "FreeSWITCH received no audio on N calls" + warning "the PBX answered our plain RTP/AVP offer with encrypted media (RTP/SAVP …)" | The media relay forces SRTP towards TLS clients and drops plain RTP | Set the profile's media mode to srtp |
| Warning "we offered SRTP (RTP/SAVP + a=crypto) but the PBX answered RTP/AVP …" | The PBX doesn't do SDES-SRTP on this path | Media mode rtp |
| Warning "the PBX's media relay offers ICE (a=ice-ufrag) …" | The relay waits for ICE checks the tester doesn't do | Disable ICE for the test clients on the relay |
| Warning "the PBX expects RTP at … but the tester sends RTP from … Set the profile's media_ip (Media from) to …" | SIP and audio leave the tester through different interfaces (VPN) | Set Media from to the suggested address |
| No audio back on the run page (calls to the echo test) | The echo doesn't reach the tester: wrong Media from, the tester's firewall, or the destination isn't an echo | Check the relay Address on the Media path card; allow inbound UDP on the media ports media_port … media_port + 4 × media_sockets − 1 (default 16000–16015) |
| "bind media socket …: address already in use" | Another program (or a second PBXsight) holds one of the media ports | Change tester.media_port |
| Late … frames on the Media path card, hint "The tester's media engine fell behind" | Too many concurrent calls with audio for the media sockets, or the tester's CPU is short | Raise tester.media_sockets (default 4), run fewer concurrent calls with audio, or use a bigger tester |
| High tester RTT/jitter but FreeSWITCH's MOS is fine | The return path (PBX → tester) is the problem, e.g. VPN or Wi-Fi | Compare with a wired run; see Audio quality |
| rtpengine card: RTCP none back, no rtpengine MOS | FreeSWITCH sends no RTCP by default, so rtpengine has no round-trip time | Expected; jitter and loss still work |
| Media path: "the tester's side wasn't found by address (NAT?)" | rtpengine sees the tester behind NAT | Totals are shown instead of per-direction numbers; nothing to fix for the test itself |
ESL (FreeSWITCH Event Socket)
The Dashboard and the profile page show the state (connected, connecting, disconnected, disabled) and the last error. The collector reconnects by itself (1 s doubling up to 30 s).
| Message | Cause | Fix |
|---|---|---|
| "ESL password rejected (check esl.password vs. password in event_socket.conf.xml)" | Wrong password | Set the profile's ESL password to FreeSWITCH's |
| "FreeSWITCH closed the connection before authentication: this machine's IP is probably not allowed by apply-inbound-acl in event_socket.conf.xml" | The ACL rejects the tester's address (a VPN address that changed?) | Allow the tester's network / VPN pool in the ACL, then fs_cli -x reloadacl (ESL access) |
| "connection refused by 10.0.0.10:8021: check listen-ip/listen-port in event_socket.conf.xml (listen-ip must not be 127.0.0.1 or ::1 for remote access)" | ESL listens only on loopback or another port | Fix listen-ip/listen-port, fs_cli -x 'reload mod_event_socket' |
| "no response from 10.0.0.10:8021: host unreachable or a firewall drops the ESL port" | Routing, VPN or firewall | Open TCP 8021 from the tester on FreeSWITCH's firewall |
| "cannot resolve ESL host: …" | Wrong host name | Use the IP address |
Watch result incomplete, min_coverage_pct failed | ESL was disconnected for part of the watch | Check the connection's stability (VPN, FreeSWITCH restarts) and watch again |
Kamailio metrics
| Message | Cause | Fix |
|---|---|---|
| "stats.fetch: HTTP 403 — Kamailio refused it (this machine's IP isn't in the RPC route's allowed networks, or the method isn't in its allow-list)" | The RPC route's guard | Add the tester's network / the method in the routing script |
| "…: HTTP 404 — the xhttp route doesn't hand this path to jsonrpc_dispatch() (check the URL path, e.g. /RPC)" | Wrong path, or the route isn't reached | Check the URL in kamailio.urls and the event_route[xhttp:request] |
| "no reply in time (is jsonrpcs' HTTP transport enabled? see README): …" | jsonrpcs loaded without its HTTP transport, or xhttp loaded after it | loadmodule "xhttp.so" before jsonrpcs.so; modparam("jsonrpcs", "transport", 7) |
| "connection refused (wrong IP/port, or no TCP listener there): …" | No Kamailio TCP listener on that address/port | Use a listen=tcp:… address in the URL |
| Requests/s look higher than the SIP traffic | They aren't: the tester subtracts its own JSON-RPC polls | — |
See Kamailio for the complete Kamailio side.
rtpengine and pbxsight-agent
In the app (Dashboard, rtpengine chip):
| Message | Cause | Fix |
|---|---|---|
| "…: HTTP 401 — wrong or missing agent token (rtpengine.token)" | Token in the profile ≠ the agent's | Copy /etc/pbxsight-agent/token into the profile's rtpengine token |
| "…: HTTP 403 — this machine's IP isn't in the agent's allow list" | The agent's allow list | Add the tester's network to allow, restart the agent |
| "…: HTTP 404 — the agent doesn't have this endpoint (update pbxsight-agent)" | An older agent | Install the current agent package |
| "no reply in time (agent down, firewall, or VPN route): …" | Agent not reachable | systemctl status pbxsight-agent; open its port from the tester |
| "connection refused (agent not running, or wrong IP/port): …" | Agent stopped or wrong URL | Start it; check listen vs. the URL |
| "rtpengine: HOST has no token (…)" when saving a profile | Source enabled without a token | Set the token, or put it in the URL (http://TOKEN@host:9310) |
On the agent host (journalctl -u pbxsight-agent, or pbxsight-agent -check):
| Message | Cause | Fix |
|---|---|---|
| Log line "rtpengine not reachable" with "nothing listens on udp 127.0.0.1:2223: set rtpengine.ng to rtpengine's listen-ng (on the host: ss -ulpn | grep rtpengine)" | rtpengine.ng isn't rtpengine's listen-ng | Find the real port with ss -ulpn | grep rtpengine |
| "no reply from udp …: rtpengine.ng isn't rtpengine's listen-ng, or rtpengine isn't running" | Wrong port or rtpengine down | As above |
"config: listen is required (private IP:port)" / "token (or token_file) must be at least 32 characters, e.g. openssl rand -hex 32" / "allow needs at least one network (CIDR or IP)" | Incomplete config (the package installs the agent enabled but not started for this reason) | Edit /etc/pbxsight-agent/config.yaml, check with -check, then systemctl start pbxsight-agent |
| "request_timeout must be at least 2s (…)" | Too short | request_timeout: 5s |
| Agent answers 503 "busy, retry" | More than max_concurrent requests at once | Raise max_concurrent, or poll less often |
| The agent doesn't start at boot, retries every 5 s | Its private listen address isn't up yet (VPN, late network) | Expected; it starts once the address exists |
The app
Login and users
| Symptom / message | Cause | Fix |
|---|---|---|
| "wrong setup token: use the one printed in the app's log, or open the page on the machine the app runs on" | Creating the first admin from another machine | journalctl -u pbxsight | grep setup_token or docker compose logs pbxsight | grep setup_token |
| "too many failed logins; try again in 14m0s" (429) | 5 failures per user name or 20 per address in 15 minutes | Wait; an admin can set a new password |
| Forgotten password / no admin left | — | On the app's machine: pbxsight -config /etc/pbxsight/config.yaml reset-admin NAME (as the app's user); prints a new password once |
| "your role (viewer) may not do this; ask an admin" | Role too low | An admin changes the role on Users |
| "… is the only enabled admin; make another user admin first" | The last admin can't be demoted, disabled or deleted | Make another user admin first |
| Logged out unexpectedly | Idle for server.session_idle_timeout (7 days), session_max_age (30 days), or the password changed | Log in again |
| "host pbxsight.example.com not allowed (add it to server.allowed_hosts)" | The UI is opened under a name not in the allow list (DNS-rebinding guard) | Add the name to server.allowed_hosts, restart |
| "send JSON (Content-Type: application/json)" (415) from a script | curl's -d sends form encoding by default | Add -H 'Content-Type: application/json' |
| "cross-site request refused" / "cross-origin request refused" | A request from another website's page | Use the app's own page; behind a proxy, keep the Host header |
HTTPS and network access
| Symptom | Cause | Fix |
|---|---|---|
| Browser warns about the certificate | Self-signed certificate (tls.enabled without files) | Compare the SHA-256 fingerprint in the log and accept once, or use a certificate from your company CA (HTTPS) |
| Log: "the UI is reachable from the network over plain HTTP: …" | Listening on the network without HTTPS | Turn on server.tls.enabled, or a reverse proxy with HTTPS (server.trusted_proxies) |
| "server.tls: set both cert_file and key_file, or neither (self-signed)" | Only one file given | Give both |
| Log: "the https certificate expires soon" | Own certificate expires within 14 days | Renew it and restart |
| Live charts don't update behind a reverse proxy | /ws not proxied as a WebSocket | Pass the Upgrade/Connection headers for /ws |
| The UI is unreachable from other machines | Plain binary listens on 127.0.0.1:8080 | server.listen: "0.0.0.0:8080" and open TCP 8080 |
Start-up
| Message | Cause | Fix |
|---|---|---|
| "error: listen 127.0.0.1:8080: … address already in use" | Another program, or a second PBXsight, on the web port | Stop it, or set server.listen / PBXSIGHT_SERVER_LISTEN to another port |
| "the database holds encrypted secrets but the secret key file … is missing: restore it from the backup made with the database (or set PBXSIGHT_STORAGE_SECRET_KEY)" | The database was moved or restored without its key file | Restore pbxsight.key next to the database (Secrets) |
| "config: parse config.yaml: … field … not found in type …" | A typo or an unknown key in the YAML | Fix the key name (Configuration) |
| "config: tester.media_sockets 40: 1 to 32" and similar | A value out of range | Fix it; all problems are listed at once |
| Log: "marked runs interrupted by a previous shutdown as failed" | The app was killed during a run | Those runs are recorded as failed; nothing to do |
| macOS: "cannot be opened" on first start | Quarantine flag on a downloaded, not notarized binary | xattr -d com.apple.quarantine pbxsight |
Licence
| Message | Cause | Fix |
|---|---|---|
| "this is not a PBXsight licence key (it should start with PBXS1.)" | Something else was pasted | Paste the whole key (line breaks from e-mails are fine) |
| "the licence key's signature is not valid (changed, cut off, or not issued for PBXsight)" | Key truncated or altered | Paste it again from the original e-mail |
| "the licence key was signed with a key this version does not know (a newer licence for a newer version?)" | The key needs a newer app version | Update PBXsight |
| Banner "The subscription ends on … (3 days left)." | Less than 7 days left | Renew: an online licence picks the new date up by itself (or Check licence now); an offline licence needs the new key |
| "could not reach the licence server (…)" (502 on Save key / Move licence), or the banner "Can't reach the licence server … since …" | No outbound HTTPS to licence.pbxsight.com (firewall, proxy, DNS) | Allow TCP 443 to it, or set HTTPS_PROXY in the app's environment (Licence check); then Check licence now |
| "the licence server refused the key: key already active on another installation: use Move licence or contact support" | The key is active on another installation | Move licence there first, or write to support to free it |
| "The licence server refused this licence key: this installation was copied; contact support" | The same database runs on two machines (e.g. one backup restored twice) | Stop the extra copy and write to support with the Licence ID |
| "this licence key is in an old format that this version no longer accepts: ask for a new key" | A key from a test version before online keys | Ask for a new key |
Schedules not running
Schedules run only while the app runs, in the server's time zone (Docker: set TZ). Each due time gets an entry in the schedule's history:
| History entry | Cause | Fix |
|---|---|---|
missed: "due 3h0m0s ago — the app wasn't running or the computer was asleep" | The app was stopped or the machine slept past the due time (more than 5 minutes late) | Run the app as a service on an always-on machine; missed times are not caught up |
skipped: "another run was active (…)" | Another test or watch was running | Move the schedule, or shorten the other run |
error: "not started: …" | Validation (e.g. a safety limit changed since saving, extension set deleted) or no valid licence | Edit the schedule (it is validated on save) / enter a licence |
| No entry at all | The schedule is switched off, or a one-off time is in the past | Switch it on; a past one-off needs a new time |
| Runs at the wrong hour | The server's time zone differs from yours | Set TZ (Docker) or the host's time zone; the editor's preview shows the zone |