Q-PBX

Open source · AGPL-3.0 · Debian 13

A cloud PBX you don't have to fight.

Q-PBX is a free, multi-tenant phone system with fax built in and an API for everything. You run it on your own server. Change a setting and the next call uses it.

Pre-alpha. Features are missing and things change between commits. Try it on a server you can throw away, not for real phone service yet.

Why another PBX?

Most PBX systems spread their settings over dozens of pages, want a reload after every change, and leave you with a pcap and a guess when a call fails. Q-PBX keeps the settings in one portal, applies them on the next call, and shows each call's SIP ladder and audio quality with hints in plain words.

Under the hood, Kamailio guards the SIP edge, FreeSWITCH carries the audio and fax, and an Elixir control plane with PostgreSQL drives both. It installs natively on Debian 13 with one command. No containers, no licence fees, no per-seat pricing.

What it does

Calling

  • Extensions with several devices, forwarding, follow-me, DND
  • IVR menus, time conditions, holidays, ring groups, parking
  • A drag-and-drop call-flow editor for each number
  • Trunks by IP or registration, carrier failover, emergency routes
  • Voicemail to email, message lights, busy lamps
  • Call recording with search and retention per plan

Fax

  • Fax boxes: received faxes arrive as PDF in the portal and by email
  • Send PDF, TIFF or phone photos from the portal or the API
  • T.38 per trunk; extensions take voice, fax or both

Many tenants, one server

  • Tenants kept apart in Kamailio, FreeSWITCH and PostgreSQL
  • Two tenants can both have extension 101
  • Plans with limits on calls, minutes and destinations
  • Fraud bursts get blocked; emergency calls still go through

API and integrations

  • A /v1 REST API with OpenAPI docs and an in-browser explorer
  • Signed webhooks with retries and a live event stream
  • Click-to-call, transfer and hang up from your own software
  • Alerts by email, webhook (Alertmanager too) and in the portal

Security

  • Kamailio bans brute force and SIP scanners
  • FreeSWITCH listens on localhost only
  • 2FA for admins, encrypted secrets and recordings
  • A default-deny firewall managed for you

Running it

  • Changes apply on the next call: no reload, no apply button
  • Per-call troubleshooting: SIP ladder, pcap, audio quality
  • Nightly encrypted backups with point-in-time restore
  • Signed upgrades that roll themselves back if a check fails
  • Imports tenants from FreePBX 15 to 17 backups
  • Bulk import of extensions and numbers from CSV
  • Portal in English and Arabic

Install

You need a fresh Debian 13 server with a public IP, a domain with a wildcard record (*.pbx.example.com) and an SMTP account. Once the first release is out, this is the whole install:

$ curl -fsSLO https://github.com/qfiber/q-pbx/releases/latest/download/install.sh
$ sudo bash install.sh

The installer asks for your domain, email and certificate mode, checks DNS and SMTP, verifies the release signature and prints your admin setup link. Later, sudo qpbx upgrade updates the server and rolls back on its own if a health check fails.

Until then, the install guide builds the packages and runs the Ansible playbook from your workstation in about 20 minutes.

What's next

Before 1.0: backups to S3-compatible storage with a one-command restore. After it: phone auto-provisioning, each call's path and reports, queues and conferencing, email-to-fax, failover to a standby server in another location, resellers with white-label branding, and single sign-on.The status page tracks the plan task by task.