
Administrator documentation for AiPBX on 64-bit Linux (Ubuntu 26.04 LTS+, Debian 13+, Raspberry Pi OS 64-bit, and Armbian on x86_64 & ARM64). Start with the installation guide, then use the pages below while configuring the system.
๐ก Quick Diagnosis: When something does not work, start with the ๐บ๏ธ system map (where everything is) and ๐ ๏ธ troubleshooting (symptom โ fix).
| Page | What it covers |
|---|---|
| ๐ Installation & updating | Requirements, one-line installer, certificates, ports, aipbx-update |
| ๐บ Video: Installation | Step-by-step setup on YouTube: English ยท Tรผrkรงe ยท Deutsch |
| ๐บ Video: Menu tour | Every screen of the portal on YouTube: English ยท Tรผrkรงe ยท Deutsch |
| ๐ฅ๏ธ Portal basics | The Apply workflow, edit dialogs, ordering lists, copying records |
| ๐พ Backups, recovery & rollback | Reproducible daily backups (aipbx-backup), disaster recovery restore commands, and zero-downtime automated upgrade rollback (aipbx-update) |
| ๐๏ธ Architecture | Components, traffic flow, security model |
| Page | What it covers |
|---|---|
| ๐ Trunks | Connection modes, inbound DID trimming, transit routing, outbound caller ID normalization, copy / rename / order |
| ๐ซ Blacklist & Spam blocker | Inbound spam blocking, AstDB sub-microsecond lookup, wildcards/patterns, drop/busy/congestion/announcement actions |
| ๐ค Outbound routes | Dial patterns, number manipulation, trunk failover, route groups, RFC 6442 / RFC 6443 Geolocation emergency headers |
| ๐๏ธ Call normalization | Pre-filter rules per client origin (Mobile, Desk, Web), E.164 normalization, trunk prefix stripping |
| ๐ฅ Inbound routes (DIDs) | DID matching, destinations, fax DIDs |
| ๐ป Custom Dialplan | Custom Asterisk context injection, syntax validator, internal aggregator, recipe templates (Intercom, Spy, Paging, DISA) |
| โ๏ธ Desk phones | Provisioning Yealink, Grandstream, Fanvil, Snom, Cisco SPA and Poly phones over HTTPS, CSV import, waiting phones, phones found on the network, key layouts (BLF, speed dial, park), re-provision |
| ๐ต Cisco 7900 / 8800 series | Ciscoโs enterprise phones (CallManager firmware): the SEP<MAC>.cnf.xml AiPBX writes, the firmware, the usecallmanager.nz Asterisk patch and the shared files you provide |
| ๐ง Network settings | The serverโs addresses, the addresses desk phones get, and moving everything after an IP change in one step |
| ๐ก๏ธ Reverse proxy setup | Deploying behind Nginx, Caddy, Traefik, HAProxy, Apache; WebRTC WebSocket proxying, trusted proxies, and SIP/RTP bypass |
| ๐ก Network services | DHCP (option 66/150/160) TFTP and read-only FTP for desk phones on a phone network or VLAN, leases, the options for your own DHCP server, an NTP server and phone logs (syslog) by IP or MAC |
| ๐ฉบ Health checks | The server watches itself (services, trunks, disk, certificate, backup โฆ), alarm e-mails, the daily summary with yesterdayโs calls, aipbx-selftest |
| ๐๏ธ Call recordings | Where recordings live, automatic MP3 conversion, playback |
| ๐ Reports | Call reports with trunks and direction, Queue Report Centre, PDF and Excel export |
| ๐ Sounds & languages | Custom sounds, the Turkish prompt packages (six formats), regenerating a prompt |
| ๐ Translating | Interface languages, adding or correcting a translation with scripts/i18n.py, mobile app texts, prompts in other languages |
| ๐น Video calls | Video between the web phone, the Android app and desk video phones; the one video codec; bandwidth |
| ๐ง WebRTC, NAT and TURN | Browser and app audio across NAT, external IP, TURNS on 443, troubleshooting silent calls |
| ๐๏ธ External databases & IVR data steps | Read-only MySQL/PostgreSQL connections, encrypted credentials, real-time IVR caller/DTMF data lookups and call branching |
| ๐๏ธ PBX fine tuning & maintenance | Jitter buffer, SIP protocol timers (T1, B, Max-Forwards), 10-minute SIP debug, safe night restart window, spoken status messages |
| ๐ง Linux OS & kernel tuning | Network sysctl (RTP buffers, MPTCP disable), SIP ALG blacklist, real-time CPU scheduling, OOM protection, needrestart shielding |
| Page | What it covers |
|---|---|
| ๐ฅ Users & roles | Built-in roles, landing pages, permissions, My Phone |
| ๐ก๏ธ Security | Firewall, fail2ban, the aipbx-priv root helper, Apache sandbox |
| ๐ง Network ports & firewall | Complete matrix of all TCP/UDP ports, public vs LAN scopes, NAT guidelines, UFW/firewalld/iptables recipes |
| ๐ก๏ธ Threat model & attack surface | Security architecture, SIP exposure boundaries, WebRTC/TURNS credentials, recording retention, mobile push tokens, and AI least privilege guardrails |
| โ๏ธ GDPR, KVKK & data privacy | Optional regulatory presets (KVKK, GDPR, CCPA/FCC, HIPAA, PCI-DSS, LGPD), pre-call opt-in/opt-out, periodic beep, retention purge, SAR export, Right to Erasure, and Cloud AI lock |
| ๐ Certificates | One certificate for portal, TURNS and SIP-TLS; Letโs Encrypt, upload, renewals |
| ๐ก Busy lamps (BLF) | Desk phone keys for colleagues, do-not-disturb, forwarding and queue login; pickup; voicemail lamp |
| โ๏ธ E-mail | Mail relay and e-mail templates (fax, voicemail, invitations, password e-mails) |
| ๐๏ธ File storage | Chat attachments on the local disk or in an S3-compatible bucket (AWS S3, MinIO, Wasabi, Backblaze B2), moving existing files |
| ๐ REST API v1 & outbound webhooks | Stateless /api/v1/* endpoints, OpenAPI 3.1 spec, Bearer API keys (apbx_...), scopes, IP allowlists, and HMAC-SHA256 signed webhooks |
| โฑ๏ธ Scheduled tasks | Sandboxed background shell, PHP and Python scripts on a cron schedule (aipbx-task, systemd-run), run history, bell alarms |
| ๐ ๏ธ Troubleshooting | Changes not applied, calls hung up, sounds not found, SIP captures |
Optional applications and integrations bundled with AiPBX (plugins/: official plugins and community plugins), enabled on demand under Integrations โ Plugins (/plugins):
| Page | Plugin slug | What it covers |
|---|---|---|
| ๐งฉ Plugin system & developer guide | โ | The bundled plugin catalog (plugins/), plg_* database tables, enabling/disabling integrations (google-auth, ms-teams, โฆ), and building custom .zip plugins |
| ๐ Corporate SSO: OpenID Connect & SAML 2.0 (Plugins) | oidc-auth, saml-auth |
Enterprise Single Sign-On (SSO) with Microsoft Entra ID (Azure AD), Okta, Keycloak, Authentik, Google Workspace, and ADFS with JIT auto-provisioning |
| ๐ค Auto dialer & AMD campaigns (Plugin) | auto-dialer |
Automated outbound calling campaigns with Answering Machine Detection (AMD), queue free-agent pacing, voicemail drop, and CSV call results |
| ๐ Website call widget (Plugin) | web-widgets |
โCall usโ button for websites (WebRTC in the browser), call-back form, allowed websites and limits, WordPress plugin |
| โ๏ธ Cloud AI services (Plugin) | ai-cloud, ai-voicemail |
Accounts of cloud AI providers (Gemini/Gemma, OpenAI, Azure, Deepgram, Groq, NVIDIA NIM, Qwen, any OpenAI-compatible service), cloud speech to text, language models, voicemail transcription |
| ๐ฃ๏ธ Cloud TTS (Plugin) | ai-tts |
Text to speech with Google, Amazon Polly, Azure, ElevenLabs or OpenAI; saving announcements |
| ๐ง Local AI models (Plugin) | ai-models |
AI models on the PBX itself (EMA Lightning Turkish TTS): the runtime, downloading models, the aipbx-ai service and its API |
| ๐๏ธ AI applications (Plugin) | ai-apps |
AI features with their own numbers that take calls: announcements with values (caller, lookup address) |
| โจ Dialplan editor / AI assistant (Community plugin, @shido6) | ai-assistant |
Plain-language PBX changes with a preview before apply, the audit trail, undo, and the Echo box that answers questions from this serverโs own data |
| ๐ก Signaling capture | PBX settings โ Signaling | What res_hep sends to the local aipbx-signaling daemon, the pbx_signaling_events table, and retention (off by default) |
| ๐ฎ Voicemail | PBX settings โ Voicemail | Mailboxes, listening (*97/*98, portal, apps, e-mail), message limits and PIN rules |
| ๐ Call quality | Reports โ Call quality | Packet loss in both directions and jitter per trunk and extension from RTCP; a health check alarms when audio is lost |
The ๐ค Android and ๐ iOS apps are built by GitHub Actions and attached to each GitHub Release. Users sign in with their portal username and password (plus 2FA when enabled), by scanning the QR code on My Phone, or with the link in their invitation e-mail.
| Page | What it covers |
|---|---|
| ๐ SDD Guide & Constitution | Specification-Driven Development (SDD) guide, core architectural rules (zero regressions, circuit breakers, pure generators), and living specifications index (Specs 001, 002, 003) |
| ๐บ๏ธ Roadmap | Planned work across future waves with detailed requirements and milestone criteria |
Planned work (website call widget, chat message deletion, S3 storage, video calls, local AI models, busy lamps on desk phones, phone provisioning, DHCP/TFTP โฆ) with a short explanation of each: Roadmap.