# AiPBX (v1.82.12) — Open-Source AI-Powered Enterprise IP PBX > Free, MIT-licensed enterprise IP telephony platform built on Asterisk 22 LTS, PJSIP, WebRTC, Nginx Port 443 ALPN multiplexing, Go WebSocket chat, 23 interface languages (100% translated, 7,211 strings), and a modular plugin system with an Ed25519-signed community catalog. ## Core Platform - **Telephony Engine**: Asterisk 22 LTS, PJSIP dual-endpoint extensions (`{ext}-sip` desk/mobile + `{ext}-webrtc` browser/mobile), IVR, ring groups, call queues, call center wallboard & supervisor monitoring (`*90` spy, `*91` whisper, `*92` barge), T.38 Fax-to-Email, ConfBridge SFU / Follow-Talker video meetings, call parking, blacklist, and 6-tier call barring. - **Single-Port 443 Ingress**: Nginx L4 `stream` with `ssl_preread` inspects ALPN/SNI without terminating TLS — HTTP/WSS (`/`, `/ws`, `/chat/ws`) routes to Apache (:8443), WebRTC TURNS relays to `coturn` (:5349), and remote desk phone SIP-TLS by phone region routes to Asterisk (:5061). - **One-Command Installer & Rollback Upgrades**: Ubuntu Server 26.04 LTS+ (`x86_64` & `ARM64`); automated database backups (`aipbx-backup`), `aipbx-update` with automatic rollback, `aipbx-selftest`, `firewalld` + `fail2ban` jails, Passkeys (WebAuthn/FIDO2), and TOTP 2FA. - **Privacy & Telecom Compliance**: 100% opt-in compliance presets for GDPR, KVKK (Turkey Law 6698), US CCPA/FCC, HIPAA, PCI-DSS v4.0, and LGPD; pre-call DTMF consent/opt-out, periodic recording beep, live Luhn PII redaction, nightly retention purge, SAR JSON export, Right to Erasure, and Cloud AI Lock. ## AI & Voice Automation (`v1.82.12`) - **Built-in AI Voice Agents (`/ai-agent`)**: Realtime (OpenAI Realtime, Gemini Live, xAI, Qwen, OpenAI-compatible) and Cascade (`STT -> LLM -> TTS`) agents bridged over Asterisk ARI or AudioSocket, Guided Setup Wizard (`/ai-wizard`), per-agent call recording with CDR playback, Knowledge Base RAG (`ai-knowledge`), saved external SQL/HTTP tools, DTMF collection/sending, and autonomous outbound IVR navigation (`dial_and_navigate`). - **Local TTS & Detectors (`ailocal` / `aipbx-ai`)**: On-premise CPU/GPU ONNX voices — **EMA Lightning** (Turkish), **Piper**, and **Kokoro** — plus optional **Silero VAD** and **Smart Turn** end-of-turn detectors (`https://aipbx.bid/docs/local-ai`). - **Cloud AI (`aicloud`)**: Multi-account provider management with `SecretBox` encryption and monthly quota tracking for OpenAI, Google Gemini, Groq, Deepgram, ElevenLabs, Microsoft Azure AI Speech, Amazon Polly, OpenRouter, NVIDIA NIM, Qwen, and any OpenAI-compatible endpoint including self-hosted Ollama (`https://aipbx.bid/docs/cloud-ai`). - **Cloud TTS Studio & Hold Music (`ai-tts`)**: 8 built-in Asterisk/PBX prompt templates plus the **ElevenLabs Hold Music (MOH)** generator (`POST /v1/music`, 5 telephony-tuned instrumental presets, `30–180 s`, `music_v1` / `music_v2` / `music_v2_5`) saving straight into Sounds (`custom/`) or any Asterisk MOH class as 8 kHz 16-bit mono WAV (`https://aipbx.bid/docs/cloud-tts`). - **AI Voicemail (`ai-voicemail`), Call Quality Review (`ai-call-analysis`) & PBX Assistant (`pbx-assistant`)**: Voicemail transcription and urgency summaries, automated call quality scoring (Auto-QA), and natural-language PBX change previews with undo (`https://aipbx.bid/docs/assistant`). ## CRM, ERP, UC & Developer Integrations - **Odoo ERP & CRM (17 / 18 / 19)**: - AiPBX Connector: https://apps.odoo.com/apps/modules/19.0/aipbx_connector - AiPBX Connector - CRM: https://apps.odoo.com/apps/modules/19.0/aipbx_connector_crm - Source: https://github.com/mahirgul/AiPBX-Odoo - **ERPNext / Frappe** (self-hosted & Frappe Cloud): Free official **AiPBX Connector** with click-to-call, caller screen pop, Call Log with recordings and AI summaries, missed-call ToDo, and Contacts/Leads phonebook sync (https://github.com/mahirgul/AiPBX-Frappe). - **VoIP Billing (`voip-billing`)**: Multi-account ClientFence / FOSSBilling draft invoice creation from answered outbound CDRs with extension mapping and longest-prefix rates (`https://github.com/mahirgul/AiPBX-plugins`). - **Other CRMs & Automation**: HubSpot, Zoho CRM, Pipedrive, Bitrix24, Salesforce via n8n, Make, or Zapier using HMAC-SHA256 signed webhooks (`https://aipbx.bid/docs/crm-integrations`). - **REST API v1 & OpenAPI 3.1**: 100+ endpoints with scoped Bearer API tokens (`apbx_...`), IP allowlists, click-to-call (`POST /api/v1/calls/originate`), and one-time mobile QR onboarding (`POST /api/v1/extensions/{id}/pairing`) (`https://aipbx.bid/docs/rest-api-v1`). - **Microsoft Teams & Cisco CUCM**: Built-in Direct Routing SIP-TLS SBC & Teams channel Adaptive Cards (`ms-teams`), plus bidirectional Cisco CallManager SIP trunking (`https://aipbx.bid/docs/cisco-callmanager`). - **Enterprise SSO & Directory**: SAML 2.0 (`saml-auth`), OpenID Connect (`oidc-auth`), Microsoft Entra ID (`microsoft-auth`), Google Workspace OAuth 2.0 (`google-auth`), and LDAP / Active Directory phonebook sync (`https://aipbx.bid/docs/sso`). - **Plugin SDK & Signed Community Catalog**: Custom `.zip` plugins (`plugin.json`, `plg_*` tables, Safe Mode circuit breaker) plus Ed25519-signed community catalog (Auto Dialer & AMD, CNAM, SMS/MMS, LDAP Sync, SIP Provider Templates, VoIP Billing) at https://github.com/mahirgul/AiPBX-plugins. ## Mobile Apps & Hardware Provisioning - **Android App (Kotlin)**: WebRTC + Push wake-up (FCM), video calls, Go WebSocket chat, directory — Google Play (https://play.google.com/store/apps/details?id=com.mhrgl.AiPBX) and GitHub Releases APK (https://github.com/mahirgul/AiPBX-Android). - **iOS App (SwiftUI / CallKit)**: WebRTC + CallKit, chat, directory, DND/forwarding — GitHub Releases (`AiPBX-unsigned.ipa`, `AiPBX-Simulator.zip`, v1.50.36+) at https://github.com/mahirgul/AiPBX-ios. - **Desk Phones & Network Services**: Zero-touch HTTPS/TFTP/FTP/DHCP/NTP provisioning for Yealink (including OpenVPN `.tar` builder), Grandstream, Fanvil, Snom, Poly, and Cisco (`https://aipbx.bid/docs/phones`). ## Key Pages - Home (EN): https://aipbx.bid/ - Home (TR): https://aipbx.bid/tr/ - Home (DE): https://aipbx.bid/de/ - Home (AZ): https://aipbx.bid/az/ - Features: https://aipbx.bid/features - Integrations: https://aipbx.bid/integrations - Why PHP? (Architecture & Sizing): https://aipbx.bid/why-php - One-Command Install: https://aipbx.bid/install - Video Guides: https://aipbx.bid/videos - Mobile Apps & Connectors: https://aipbx.bid/mobile - FAQ & Technology Deep-Dives: https://aipbx.bid/faq - Documentation: https://aipbx.bid/docs - Live Interactive Demo (EN / TR / DE): https://aipbx.bid/demo/en/dashboard/ ## Technology Deep-Dives & Architecture Articles - Why PHP? (Control Plane Architecture & 4 vCPU / 4 GB Sizing): https://aipbx.bid/why-php — Explains why PHP never sits on media/signaling hot paths and gives concrete human & AI concurrency tables. - Why not Node.js and React?: https://aipbx.bid/faq/why-not-node-react — The honest answer: PHP is only the control plane (audio runs in C, Go and Python), one-command install with no build chain, 1,600+ tests, where the critics are right (contributors, live screens) and how to build a TypeScript/React front-end on the `/api/v1` REST API (OpenAPI 3.1). - VoIP over QUIC (RFC 9000 / 9221): https://aipbx.bid/faq/quic — Experimental standalone Go gateway (`AiPBX-QUIC`) multiplexing SIP streams and RTP Datagrams over single-port UDP 443 with Connection Migration. - Port 443 Nginx L4 ALPN & SNI Multiplexing: https://aipbx.bid/faq/port-443-alpn — Zero-decryption `ssl_preread` routing to Apache (:8443), `coturn` (:5349), and Asterisk SIP-TLS (:5061). - Asterisk 22 LTS, Dual-Endpoint PJSIP & ConfBridge SFU: https://aipbx.bid/faq/asterisk-pjsip — Simultaneous deskphone + WebRTC endpoints, zero-transcoding SFU video, and `.prev` atomic config rollback. - WebRTC, DTLS-SRTP & Ephemeral `coturn` Credentials: https://aipbx.bid/faq/webrtc-coturn — Solving loopback NAT issues (`relay-ip`, `ice_host_candidates`), disabling `stunaddr`, and 30-min HMAC-SHA1 TURN tokens. - Go WebSocket Chat Daemon (`aipbx-chat`) & Built-in LDAP: https://aipbx.bid/faq/go-chat — 1,000+ low-memory goroutine sockets on 4 GB RAM, 256-member groups, `v_chat_users` isolation, and LDAP (:389/:636). - ONNX Runtime Local TTS vs. PyTorch: https://aipbx.bid/faq/onnx-local-tts — Real 2-core CPU benchmarks replacing ~1.1 GB PyTorch with ~150 MB ONNX Runtime + numpy (EMA Lightning 11–12×, Piper 13–16×, Kokoro 1.7×). - Silero VAD v5 & Smart Turn v3.2 End-of-Turn Detection: https://aipbx.bid/faq/silero-smart-turn — Per-agent opt-in ONNX detectors (`0.08 ms` VAD / `~100 ms` turn classifier) and 8 kHz telephony findings. - Asterisk ARI, AudioSocket & ElevenLabs Hold Music: https://aipbx.bid/faq/ari-audiosocket-realtime — 20 ms PCM streaming, Realtime vs Cascade Voice Agents, RAG/DB/DTMF/`dial_and_navigate`, and ElevenLabs MOH generator. - HEPv3 SIP/RTCP Capture (`aipbx-signaling`) & Call Quality: https://aipbx.bid/faq/hepv3-signaling — Loopback HEPv3 collector (:9061), SIP ladder diagrams, `.pcap` exports, and bidirectional RTCP health alerts. - FIDO2 Passkeys, `SecretBox`, `aipbx-priv` & systemd Sandboxing: https://aipbx.bid/faq/passkeys-secretbox-sandbox — Least-privilege DML DB separation, libsodium secrets outside DB, SSRF pinning, and Ed25519 plugin catalog. - Zero-Battery Mobile Push Wakeup & CallKit: https://aipbx.bid/faq/fcm-apns-callkit — Under-400 ms FCM / PushKit wakeups, iOS `aipbx-engine://` scheme fixes, and `POST /api/v1/extensions/{id}/pairing`. ## Author & Repositories - Author: Mahir Gül — https://www.mhrgl.com - Core PBX: https://github.com/mahirgul/AiPBX - Documentation Sitemap: https://aipbx.bid/sitemap-docs.xml