Skip to content

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: messageCauseFix
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 transportUse 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 offOpen 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 TLSSet the transport to TCP/UDP, or use the TLS port
connect: warning "the certificate has expired"The server's certificate is past its end dateRenew 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 harmlessNothing; 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 itCheck 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 disabledFix 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 407Check 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 phonesWait 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 portlisten-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 VPNOpen TCP 8021 from this machine
ESL login: "ESL password rejected"Password differs from event_socket.conf.xmlType 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-aclAdd 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-listAllow this machine's IP and the methods core.*, stats.fetch
Kamailio HTTP: "HTTP 401: Kamailio wants credentials"The route asks for basic authhttp://user:password@host:port/RPC
rtpengine token: "agent token rejected (HTTP 401)"The token differs from the agent's token / token_fileEnter the agent's token (or put it in the URL)
rtpengine token: "agent refused this machine (HTTP 403)"The agent's allow listAdd 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-agentUpdate the agent
rtpengine ng / metrics: "not configured on the agent" (warning)The agent has no ng address / metrics URL for rtpengineSet 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 wrongCheck 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:

FileContent
manifest.jsonapp 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.yamlthe effective app configuration, secrets replaced by <redacted>
profiles/<name>.yamlevery profile, secrets replaced by <redacted>
app.logthe 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.jsonlicence state, plan, customer, end date, user limit — never the key
health.jsoneach profile's ESL, Kamailio and rtpengine connection state
run-<id>/report.html, run.jsonwith 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 ​

SymptomLikely causeFix
Every REGISTER/INVITE ends as timeout, no response at allWrong transport or port (e.g. the proxy accepts TLS only), a firewall, or the proxy's flood protection blocking the testerCheck 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 responsesTCP/TLS connection refused or broken: nothing listens on that port, or a TLS-only listener got TCPSame 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 whileFlood 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 CSVThe domain must be the tenant's SIP domain (realm); fix the CSV and upload it again
403 Forbidden on REGISTERExtension disabled, wrong domain, a registration ACL on the sofia profile — or the proxy itself rejects the senderCheck 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 / 480The tester's firewall or NAT drops INVITEs arriving at the phones' UDP ports after the state expiredAllow UDP from the entry point to the tester, or use TCP/TLS (Ports)
Registered on PBX stays 0 while REGISTERs get 200ESL disconnected, or FreeSWITCH's events aren't matched to the testCheck 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 logOne socket per test extension hits the process limitPlain 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 runThe app was killed before it could un-register themThey expire on their own: caller phones after 1 h, callee phones after 5 min
The proxy logs thousands of TLS connectionsExpected: every registered test extension keeps one connection, like a phoneRaise 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.

MessageCauseFix
"a test is already running; stop it first"One test or watch at a time per installationWait or stop the running one
"the test was not started: No licence key entered: tests and schedules can't start. …" (402)No valid licenceAn 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 endedEnter the new key; results stay readable meanwhile
"destination "1234" is not allowed (safety.allowed_destinations: [*9196 9196])"Only listed numbers may be dialledAdd 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 profileLower 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 allowedShorter 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 audioSet 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 profileSet 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 selectedUpload 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 existSend profile_id
A test with test extensions sits in Starting for a long timeThe virtual phones register first, at up to 10 per second (1000 phones ≈ 100 s)Normal; Stop works in this phase too

Calls ​

SymptomLikely causeFix
Calls get 404 or 480The 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 reachedUse more callers (calls are spread round-robin) or raise the limit
486 in calls between test extensions / busy hourA callee already in a call: counted as busy, not failedExpected in busy hour; check with max_busy_pct if it matters
Setup p95 above 500 ms at low loadNormal latency of the path (TLS, proxy, dialplan, database lookups) — not necessarily overloadRead 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 windowA queue: some component serves fewer calls per second than offeredWhat 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 minuteThe SIP transaction runs out its timersHarmless; it ends by itself

Audio and media ​

SymptomLikely causeFix
Hangup cause MEDIA_TIMEOUTNo audio reached FreeSWITCH during the holdUse 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 RTPSet 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 pathMedia mode rtp
Warning "the PBX's media relay offers ICE (a=ice-ufrag) …"The relay waits for ICE checks the tester doesn't doDisable 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 echoCheck 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 portsChange 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 shortRaise 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 fineThe return path (PBX → tester) is the problem, e.g. VPN or Wi-FiCompare with a wired run; see Audio quality
rtpengine card: RTCP none back, no rtpengine MOSFreeSWITCH sends no RTCP by default, so rtpengine has no round-trip timeExpected; jitter and loss still work
Media path: "the tester's side wasn't found by address (NAT?)"rtpengine sees the tester behind NATTotals 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).

MessageCauseFix
"ESL password rejected (check esl.password vs. password in event_socket.conf.xml)"Wrong passwordSet 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 portFix 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 firewallOpen TCP 8021 from the tester on FreeSWITCH's firewall
"cannot resolve ESL host: …"Wrong host nameUse the IP address
Watch result incomplete, min_coverage_pct failedESL was disconnected for part of the watchCheck the connection's stability (VPN, FreeSWITCH restarts) and watch again

Kamailio metrics ​

MessageCauseFix
"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 guardAdd 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 reachedCheck 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 itloadmodule "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/portUse a listen=tcp:… address in the URL
Requests/s look higher than the SIP trafficThey 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):

MessageCauseFix
"…: HTTP 401 — wrong or missing agent token (rtpengine.token)"Token in the profile ≠ the agent'sCopy /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 listAdd the tester's network to allow, restart the agent
"…: HTTP 404 — the agent doesn't have this endpoint (update pbxsight-agent)"An older agentInstall the current agent package
"no reply in time (agent down, firewall, or VPN route): …"Agent not reachablesystemctl status pbxsight-agent; open its port from the tester
"connection refused (agent not running, or wrong IP/port): …"Agent stopped or wrong URLStart it; check listen vs. the URL
"rtpengine: HOST has no token (…)" when saving a profileSource enabled without a tokenSet the token, or put it in the URL (http://TOKEN@host:9310)

On the agent host (journalctl -u pbxsight-agent, or pbxsight-agent -check):

MessageCauseFix
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-ngFind 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 downAs 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 shortrequest_timeout: 5s
Agent answers 503 "busy, retry"More than max_concurrent requests at onceRaise max_concurrent, or poll less often
The agent doesn't start at boot, retries every 5 sIts private listen address isn't up yet (VPN, late network)Expected; it starts once the address exists

The app ​

Login and users ​

Symptom / messageCauseFix
"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 machinejournalctl -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 minutesWait; 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 lowAn 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 deletedMake another user admin first
Logged out unexpectedlyIdle for server.session_idle_timeout (7 days), session_max_age (30 days), or the password changedLog 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 scriptcurl's -d sends form encoding by defaultAdd -H 'Content-Type: application/json'
"cross-site request refused" / "cross-origin request refused"A request from another website's pageUse the app's own page; behind a proxy, keep the Host header

HTTPS and network access ​

SymptomCauseFix
Browser warns about the certificateSelf-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 HTTPSTurn 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 givenGive both
Log: "the https certificate expires soon"Own certificate expires within 14 daysRenew it and restart
Live charts don't update behind a reverse proxy/ws not proxied as a WebSocketPass the Upgrade/Connection headers for /ws
The UI is unreachable from other machinesPlain binary listens on 127.0.0.1:8080server.listen: "0.0.0.0:8080" and open TCP 8080

Start-up ​

MessageCauseFix
"error: listen 127.0.0.1:8080: … address already in use"Another program, or a second PBXsight, on the web portStop 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 fileRestore pbxsight.key next to the database (Secrets)
"config: parse config.yaml: … field … not found in type …"A typo or an unknown key in the YAMLFix the key name (Configuration)
"config: tester.media_sockets 40: 1 to 32" and similarA value out of rangeFix it; all problems are listed at once
Log: "marked runs interrupted by a previous shutdown as failed"The app was killed during a runThose runs are recorded as failed; nothing to do
macOS: "cannot be opened" on first startQuarantine flag on a downloaded, not notarized binaryxattr -d com.apple.quarantine pbxsight

Licence ​

MessageCauseFix
"this is not a PBXsight licence key (it should start with PBXS1.)"Something else was pastedPaste 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 alteredPaste 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 versionUpdate PBXsight
Banner "The subscription ends on … (3 days left)."Less than 7 days leftRenew: 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 installationMove 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 keysAsk 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 entryCauseFix
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 runningMove 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 licenceEdit the schedule (it is validated on save) / enter a licence
No entry at allThe schedule is switched off, or a one-off time is in the pastSwitch it on; a past one-off needs a new time
Runs at the wrong hourThe server's time zone differs from yoursSet TZ (Docker) or the host's time zone; the editor's preview shows the zone

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