Skip to content

Releases

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 09:23

Alerts and webhooks

The console now tells you when something needs attention, instead of waiting for you to look.

  • Four rules for every instance: instance down, gateway down, idle CPU low, sessions high. An alert fires, and later resolves, only after its condition has held for the configured time (60 seconds by default), so a gateway that retries does not flap.
  • A new Alerts page lists what is firing and the last 200 entries of the history; the sidebar shows the number of active alerts.
  • Up to five webhooks: Slack (also Mattermost, Rocket.Chat), DingTalk, WeCom, Feishu, or plain JSON for your own receiver. Messages in English or Chinese per webhook, sent when an alert fires and when it resolves, with a Test button. An answer that carries an error code counts as a failure even with status 200, and the history shows which webhook failed and why.
  • Webhook addresses are stored like Event Socket passwords (encrypted with FSCONSOLE_SECRET_KEY), never shown again and never written to the audit log.

SIP events

The SIP page has a second mode, Events: the last 1,000 registrations, expiries, refused attempts and gateway state changes of a switch.

  • Refused registrations are grouped by source address with the users that were tried, so a scan guessing passwords stands out from one mistyped password.
  • "Show events" in a gateway's menu lists when it went down and came back.
  • -sip-events / FSCONSOLE_SIP_EVENTS sets how many are kept; 0 turns it off.

Prometheus metrics

GET /metrics in the Prometheus text format, for people who already run Prometheus: per instance whether it is connected, sessions, sessions per second, idle CPU and the session limit, plus counters of hang-ups by cause and SIP events by kind. It exists only when FSCONSOLE_METRICS_TOKEN (at least 16 characters) is set and answers only to that bearer token. A scrape reads what the console already holds and sends nothing to FreeSWITCH.

Also

  • A guide to FreeSWITCH hang-up causes, in English and Chinese, with both SIP mapping tables taken from the source; the in-app explanations of several causes were corrected to match.

  • fsconsole now opens its port before it logs that it is listening; a busy port no longer announces a listener before failing.

Upgrading

Nothing to migrate. The data file gains an optional section for the alert settings once you save them; an older fsconsole that rewrites the file drops that section.

Install as before: the archives below (each with fsconsole and fsconsole-agent, sums in checksums.txt), ghcr.io/juki/freeswitch-console:0.3.1, or brew install juki/tap/fsconsole.

The tag v0.3.0 has no builds: its release run failed on a start-up timing problem in the tests, fixed here. 0.3.1 is the first published version of this series.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 06:17

Demo mode

Try the console without a FreeSWITCH:

docker run --rm -p 127.0.0.1:8080:8080 ghcr.io/juki/freeswitch-console:0.2.0 -demo

-demo (or FSCONSOLE_DEMO=1) starts three simulated switches: a busy one, a small one and one that never connects. They have calls, registrations, gateways, log lines, heartbeats and hang-ups in the formats FreeSWITCH uses, a sample configuration to browse, and two hours of load history from the first second.

  • No sign-in, nothing is saved, nothing real is contacted.
  • Changes to accounts, instances and files are refused; what you change on a simulated switch (stop a profile, unload a module, hang up a call) is undone after two minutes.
  • The console answers the common commands (status, sofia status, show channels, originate, uuid_kill, …) and completes on Tab.

Also

  • README: how the console compares with fs_cli, FusionPBX and FS PBX; screenshots and an animation taken from the demo.

Install as before: the archives below (each with fsconsole and fsconsole-agent, sums in checksums.txt) or ghcr.io/juki/freeswitch-console:0.2.0.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 03:28

First public release of FreeSWITCH Console (fsconsole): a web console for operating FreeSWITCH over the Event Socket. Nothing to install on FreeSWITCH, one binary, English and Simplified Chinese.

What is in it

  • Instances and overview: every switch on one page; sessions, session rate, idle CPU and capacity over the last two hours.
  • SIP: profiles, gateways, registrations; start, stop, restart, rescan; SIP trace on and off.
  • Calls: channels and bridged calls, hang up.
  • Recent hang-ups: why a call ended, without a CDR module. The cause in plain language, the SIP status, who hung up, the call's own log lines, and the reason of a bridge that failed on the way.
  • Configuration: what FreeSWITCH has loaded (configuration, dialplan, directory, variables, modules) with secrets masked, and "Edit source" to the file and line that defines it.
  • Config files: tree, XML editor, search, diff before saving, history and restore, apply actions that show FreeSWITCH's answer. Locally or through fsconsole-agent on the FreeSWITCH host.
  • Logs: live tail with a backlog. Console: any API command with Tab completion; commands run in the background, so a slow one does not hold up the rest.
  • Accounts: administrator, operator and read-only roles, and an audit log.

Install

docker run --rm -p 127.0.0.1:8080:8080 -v fsconsole-data:/data \
  -e FSCONSOLE_ADMIN_PASSWORD='choose-a-long-one' ghcr.io/juki/freeswitch-console:0.1.0

or take the archive for your platform below. Each holds fsconsole and fsconsole-agent; checksums.txt has the SHA-256 sums.

Tested

  • FreeSWITCH 1.11.3: the integration suite in the repository (read views, a call from originate to its hang-up record, the log stream, a cut and a stalled connection, 30 calls at once, a slow command).
  • Chrome. Firefox and Safari have not been tested yet.

Known limits

  • Roles are global, not per instance.
  • An agent with a self-signed certificate cannot be trusted yet (no CA file or fingerprint option); use a certificate from a CA the console host trusts, or an SSH tunnel.
  • Recent hang-ups and the load history are kept in memory and are gone after a restart.