Skip to content

v0.3.1

Latest

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.