Skip to content

SIPhon /pbx

SIPhon /pbx SIPhon /pbx

A PBX built on siphon-sip and siphon-rtp: extensions, trunks, queues, voicemail and visual call flows, with voice AI as a first-class building block rather than an add-on. It runs one office or many organisations on a single deployment, and it can sit behind an IMS core as an application server.

Get started Watch the five-minute tour Source on GitHub

browser ──HTTPS/WSS──▶ siphon-pbx ──control plane──▶ siphon-sip ──▶ siphon-rtp
                        ├─ flow engine        versioned call flows, live or on a simulated clock
                        ├─ queue engine       callers in line, agents offered the caller at the front
                        └─ API + embedded UI  the UI uses the same public API an integration does
                                                              postgres

siphon-pbx drives siphon-sip over its remote control plane only; siphon-sip runs from its stock release image with no routing script.

Thanks to Bjorn

siphon-pbx exists because of Bjorn (thutex). He asked for a PBX on this stack in the first place, and a lot of what is in it started as his idea: schedules and holidays, the flow editor, prompts, queues, going to another flow, the account and permission model, and plenty more. Most of the early issues in this repo are his, and a good part of the commits carry his name as co-author. Thank you, Bjorn.

What it is for

  • Call flows are data, not dialplan. You build them on a canvas from blocks (time schedule with holidays, IVR menu, ring group, pick up, queue, voicemail, park, record, webhook, go to flow, AI agent, ...), publish a version, and every call pins the version it entered on. Rolling back is selecting an earlier version.
  • Every flow can be tested without a phone. The same engine runs on a simulated clock: "what happens when this number calls on a public holiday at 18:05 and presses 1" is answered by running the flow, not by reading it.
  • Upgrades do not drop calls. The old and the new release run side by side against one database until the old one has finished its calls; a migration that an older release cannot run against waits for it to stop rather than breaking it.
  • Voice AI is native. AI agent blocks connect a call to a local GPU agent or a pipecat bot and exit back into the flow. A bot can transfer the caller (cold, warm or by REFER) and place a call back. Calls can be transcribed and summarised, and prompts can be written as text and spoken by a voice. A copilot drafts and explains flows, always as a reviewable, simulated draft.
  • Bring your own AI provider, or run it on your own GPU. siphon-pbx ships no AI service of its own. Each organisation connects the providers it chooses (OpenAI, Anthropic, Deepgram, Cartesia, or anything that speaks the OpenAI-compatible API) for speech, transcription, summaries and the copilot. A provider marked as your own hardware stays on your network, so a sovereign setup is a local GPU behind an OpenAI-compatible endpoint. An operator can give every organisation the deployment's own voice bot and stop them adding their own.
  • Clone, docker compose up, finish setup in the browser. No config files to edit to get a working system; secrets are generated on first start.

What else is in it:

  • Many organisations on one deployment. An operator console creates organisations, each on its own hostnames, and can disable them, set retention and legal hold, restrict addresses and countries, and provision them through operator API tokens. One organisation can also be served whatever the host.
  • Telephony. Extensions with SIP credentials and one-time provisioning links, trunks with registration, health and failover, outbound calling as flows, number ownership and dialling plans, do-not-disturb and forwarding (also by feature code from a desk phone), call pickup, voicemail with email delivery, and queues with ring-all tiers. Live calls can be listed and ended.
  • Recordings. Calls are recorded by a flow step, listed and played in the console, and delivered to a receiver of the organisation's choice. It also takes recording sessions from another PBX over SIPREC (RFC 7866). Retention windows are set per kind of data.
  • Microsoft Teams Direct Routing. The deployment can be the SBC for several organisations at once, and an extension can belong to a Teams user.
  • IMS application server. On ISC, behind an S-CSCF: originating and terminating call handling, registration state from third-party REGISTER, communication diversion, originating identification restriction and anonymous call rejection, and an XCAP server for the handset's own settings. The core itself is not ours: siphon-pbx works with an IMS core you already have.
  • WebRTC. A browser can register as an extension over secure WebSocket with its own WebRTC SIP client (JsSIP works) and call and be called, including to prompts, voicemail and trunks. A phone built into the console is not there yet, and some media pairings are still limited, see Status. A browser behind a network that allows only TCP 443 gets media through the built-in TURN relay over TLS (turns:), served on its organisation's own host on 443 beside the console: docker-compose.turns.yml adds it to the TURN layer, docker-compose.turns-only.yml runs it with nothing on 3478 at all. Neither needs a name or a certificate of its own, only 443/tcp open.
  • Several nodes on one database. Each trunk registers from one node, a phone registered on another node still rings, a trunk's registration moves when its node dies, and siphon-sip's registrar can live in Redis or Valkey.
  • Sign-in and access. OpenID Connect per organisation, passkeys and authenticator apps, permission groups, and rules for which addresses may use the web interface, place calls or register phones.
  • For integrators. The API is documented in OpenAPI and the UI uses nothing else. An MCP server per organisation lets a program read and simulate flows, and the API can place calls. See the integrator API.
  • Branding. One brand per deployment (name, colours, logos, fonts, SIP product name), set in the console or applied from a directory, with a dark theme.
  • Capture and metrics. Every SIP message and RTCP report goes to a built-in collector, with the SIP ladder, a quality score per call and a pcap download. Prometheus metrics and JSON logs for a shipper.

Status

Released (1.0.5). siphon-pbx runs a production office PBX, and the stack these docs describe is the one that runs it. Flows, the simulator, extensions, trunks, queues, voicemail, recordings, multi-tenancy, sign-in, the API and the upgrade path are what the project is held to: each has tests, and the telephony features are checked with SIPp against the real compose stack.

Known limits:

  • A browser phone calling a desk phone on encrypted media, and a browser phone talking to a voice bot, wait on a media-engine release (siphon-rtp). An extension with a browser and a desk phone registered together rings as the desk phone only.
  • Behind an IMS core, transfers, conferencing and queues are in progress. Merging a three-way call is continued to the network's conference factory, not hosted here. Calls handed over by an S-CSCF can be recorded and transcribed, terminating and originating, and a voice bot can answer a terminating one. A bot's transfer is not wired for IMS lines.
  • Transfers through Microsoft Teams are not supported.
  • Voicemail is emailed with or without the recording, and calls can be transcribed, but a voicemail message is not transcribed yet.
  • The siphon-rtp media engine publishes amd64 images only, so the telephony stack does not run on arm64.