AiPBX
Product Features Integrations
Install Mobile
Resources Docs FAQ & Tech Why PHP? Videos
Try Contact Sponsor on GitHub UpCloud ($250 Free Credit) YouTube GitHub

FAQ & architecture technologies

Every core technology AiPBX runs in production or actively tests — Asterisk 22, PJSIP, Port 443 ALPN, WebRTC, Go chat, ONNX TTS, Silero VAD & Smart Turn, HEPv3, Passkeys, PushKit/CallKit, and experimental QUIC — documented one by one.

Technologies Used & Tested

Read dedicated deep-dives on each core component, real measurements, and experimental prototypes.

CONTROL PLANE · SIZING

Why PHP? (Architecture & 4 GB Server Sizing)

PHP is never in the SIP, RTP, chat, or live AI voice hot path — C (Asterisk/Nginx), Go, and Python/ONNX do the heavy lifting. Real agent capacity on 4 vCPU / 4 GB RAM.

DESIGN DECISION · WHY PHP

Why not Node.js and React? The honest answer

The admin portal is PHP on purpose: it is a control plane, the audio runs in C, Go and Python, and a one-command install with no build chain matters more to a PBX than the framework. Where the critics are right, and when we would change course.

EXPERIMENTAL · RFC 9000 / 9221

VoIP over QUIC (RFC 9000) & QUIC Datagrams (RFC 9221)

Our standalone AiPBX-QUIC Go gateway prototype: carries SIP signaling on reliable QUIC streams and RTP voice on unreliable QUIC Datagrams over a single UDP 443 port, enabling seamless Wi-Fi ↔ 4G/5G Connection Migration without STUN/TURN overhead.

PRODUCTION · EDGE INGRESS

Port 443 Nginx L4 ALPN & SNI Stream Multiplexing

Zero-decryption Nginx L4 ssl_preread multiplexer on TCP 443 carrying the web portal, WebRTC WSS, Go chat, TURNS media relay, and region-based SIP-TLS desk phones through strict corporate and hotel firewalls.

PRODUCTION · CORE TELEPHONY

Asterisk 22 LTS, Dual-Endpoint PJSIP & ConfBridge SFU

Native PJSIP dual-endpoint extensions ({ext}-sip + {ext}-webrtc), ConfBridge SFU multi-party browser video without transcoding, in-band busy-tone disconnect detection, and atomic config generation with automatic rollback.

PRODUCTION · MEDIA RELAY

WebRTC, DTLS-SRTP, ICE & Ephemeral coturn Credentials

End-to-end encrypted Opus audio over DTLS-SRTP, TURNS relaying on Port 443, solving loopback media drops with relay-ip and ice_host_candidates, disabling stunaddr (~6 s call-setup stall fix), and HMAC-SHA1 auto-renewing TURN tokens.

PRODUCTION · MESSAGING

Go WebSocket Chat Daemon (aipbx-chat) & Built-in LDAP Directory

Why real-time messaging runs in Go goroutines instead of PHP: 1,000+ WebSockets on 4 GB RAM, 256-member groups, v_chat_users DB view isolation, fail-closed file access, and built-in LDAP phonebook for desk phones.

PRODUCTION · REPLACED PYTORCH

ONNX Runtime Local TTS (EMA Lightning, Piper, Kokoro) vs. PyTorch

Real measured CPU benchmarks replacing PyTorch (~1.1 GB runtime, ~1 GB RAM, 3.6–4.5× real time) with ONNX Runtime + numpy (~150 MB runtime, ~115–250 MB RAM, 11–12× real time on 2 cores) for EMA Lightning, Piper, and Kokoro.

PRODUCTION · OPTIONAL DETECTORS

Silero VAD v5 & Smart Turn v3.2 End-of-Turn Detection

Comparing Silero VAD v5 (2.2 MB ONNX, 0.08 ms/frame on 8 kHz audio) and Smart Turn v3.2 (8.7 MB int8, 100 ms per check with 8→16 kHz log-mel), including honest findings on telephone-grade digit detection and adaptive silence fallback.

PRODUCTION · VOICE AI

Asterisk ARI, AudioSocket, Realtime vs. Cascade AI & ElevenLabs MOH

Real-time 20 ms PCM audio streaming between Asterisk and Python aipbx-ai over ARI/AudioSocket, Cascade (STT→LLM→TTS) vs Realtime WebSocket agents, RAG/DB/DTMF/dial_and_navigate tools, and v1.82.5 ElevenLabs Music API hold music (MOH).

PRODUCTION · OPT-IN DIAGNOSTICS

HEPv3 SIP/RTCP Signaling Capture (aipbx-signaling) & Call Quality

Opt-in Asterisk res_hep, res_hep_pjsip, and res_hep_rtcp telemetry over loopback UDP (127.0.0.1:9061) powering live SIP ladder diagrams, Wireshark-compatible .pcap exports, and bidirectional RTCP packet-loss/jitter health alarms.

PRODUCTION · DEFENSE-IN-DEPTH

FIDO2 Passkeys, SecretBox Encryption, aipbx-priv & systemd Sandboxing

Layered hardening: WebAuthn/FIDO2 Passkeys & mandatory 2FA, libsodium SecretBox authenticated encryption (key outside DB), DML-only database isolation, single validated root broker aipbx-priv, DNS-pinned SSRF protection, and Ed25519-signed plugin catalog.

PRODUCTION · MOBILE & CALLKIT

Zero-Battery Mobile Push Wakeup (FCM / PushKit) & Native CallKit

How AiPBX wakes sleeping Android (FCM + ConnectionService) and iOS (PushKit + CallKit + custom aipbx-engine:// scheme) softphones in under 400 ms with zero continuous SIP socket drain, plus passwordless QR onboarding via REST API v1.

Frequently Asked Questions

Open any question for the summary or jump straight to its technical deep-dive.

Is AiPBX free?

Yes. AiPBX is open source under the MIT license: no licence, user or extension fees. The source code is on GitHub.

What server does it need?

A clean 64-bit Ubuntu Server (26.04 LTS+) installation. Both x86_64 and ARM64 (including Raspberry Pi 4/5) are supported. At least 2 vCPU, 2 GB RAM and 15 GB disk; 4 vCPU and 4 GB RAM recommended for production. Virtual machines and SBCs are fine.

Does it work without internet access?

Yes. After installation the PBX, the phones, the local voice (text-to-speech) models and the Help pages in the portal work without internet access. Cloud services are optional.

Does it work with my existing PBX or provider?

It connects to any provider that offers a SIP trunk and to PBXes that speak SIP (NEC …); Microsoft Teams Direct Routing is supported too.

Why PHP? Does it hurt telephony performance?

In AiPBX, PHP is never in the media or signaling hot path — it is strictly the control plane (admin UI, REST CRUD, and generating Asterisk configs on Apply). SIP/RTP/WebRTC run in C (Asterisk 22 + Nginx + coturn), real-time chat runs in Go, and live AI/ONNX TTS run in Python/C++. A 4 vCPU / 4 GB RAM server handles ~40–70 concurrent WebRTC calls or ~80–120 SIP passthrough calls.
Read technical article →

Why is AiPBX not built with Node.js and React?

The portal is a control plane: audio runs in C, Go and Python, and PHP never touches a live call. A one-command install with no build chain, more than 1,600 tests and low memory matter more to a PBX than framework fashion. The critics are right on contributor numbers and live screens; for those the /api/v1 REST API (OpenAPI 3.1) is open, and a small JavaScript layer can be added to just that screen.
Read technical article →

How does VoIP over QUIC (AiPBX-QUIC) work, and is it in production?

AiPBX-QUIC is our experimental standalone Go gateway using QUIC streams for SIP and QUIC Datagrams (RFC 9000 / 9221) for RTP over a single UDP 443 port to survive Wi-Fi ↔ 4G/5G handoffs. Config/unit tests pass while live two-way Asterisk calls remain on the roadmap; production uses Port 443 ALPN + WSS/TURNS.
Read technical article →

Why not Node.js and React? The honest answer

The admin portal is PHP on purpose: it is a control plane, the audio runs in C, Go and Python, and a one-command install with no build chain matters more to a PBX than the framework. Where the critics are right, and when we would change course.
Read technical article →

Port 443 Nginx L4 ALPN & SNI Stream Multiplexing

Zero-decryption Nginx L4 ssl_preread multiplexer on TCP 443 carrying the web portal, WebRTC WSS, Go chat, TURNS media relay, and region-based SIP-TLS desk phones through strict corporate and hotel firewalls.
Read technical article →

Asterisk 22 LTS, Dual-Endpoint PJSIP & ConfBridge SFU

Native PJSIP dual-endpoint extensions ({ext}-sip + {ext}-webrtc), ConfBridge SFU multi-party browser video without transcoding, in-band busy-tone disconnect detection, and atomic config generation with automatic rollback.
Read technical article →

WebRTC, DTLS-SRTP, ICE & Ephemeral coturn Credentials

End-to-end encrypted Opus audio over DTLS-SRTP, TURNS relaying on Port 443, solving loopback media drops with relay-ip and ice_host_candidates, disabling stunaddr (~6 s call-setup stall fix), and HMAC-SHA1 auto-renewing TURN tokens.
Read technical article →

Go WebSocket Chat Daemon (aipbx-chat) & Built-in LDAP Directory

Why real-time messaging runs in Go goroutines instead of PHP: 1,000+ WebSockets on 4 GB RAM, 256-member groups, v_chat_users DB view isolation, fail-closed file access, and built-in LDAP phonebook for desk phones.
Read technical article →

ONNX Runtime Local TTS (EMA Lightning, Piper, Kokoro) vs. PyTorch

Real measured CPU benchmarks replacing PyTorch (~1.1 GB runtime, ~1 GB RAM, 3.6–4.5× real time) with ONNX Runtime + numpy (~150 MB runtime, ~115–250 MB RAM, 11–12× real time on 2 cores) for EMA Lightning, Piper, and Kokoro.
Read technical article →

Silero VAD v5 & Smart Turn v3.2 End-of-Turn Detection

Comparing Silero VAD v5 (2.2 MB ONNX, 0.08 ms/frame on 8 kHz audio) and Smart Turn v3.2 (8.7 MB int8, 100 ms per check with 8→16 kHz log-mel), including honest findings on telephone-grade digit detection and adaptive silence fallback.
Read technical article →

Asterisk ARI, AudioSocket, Realtime vs. Cascade AI & ElevenLabs MOH

Real-time 20 ms PCM audio streaming between Asterisk and Python aipbx-ai over ARI/AudioSocket, Cascade (STT→LLM→TTS) vs Realtime WebSocket agents, RAG/DB/DTMF/dial_and_navigate tools, and v1.82.5 ElevenLabs Music API hold music (MOH).
Read technical article →

HEPv3 SIP/RTCP Signaling Capture (aipbx-signaling) & Call Quality

Opt-in Asterisk res_hep, res_hep_pjsip, and res_hep_rtcp telemetry over loopback UDP (127.0.0.1:9061) powering live SIP ladder diagrams, Wireshark-compatible .pcap exports, and bidirectional RTCP packet-loss/jitter health alarms.
Read technical article →

FIDO2 Passkeys, SecretBox Encryption, aipbx-priv & systemd Sandboxing

Layered hardening: WebAuthn/FIDO2 Passkeys & mandatory 2FA, libsodium SecretBox authenticated encryption (key outside DB), DML-only database isolation, single validated root broker aipbx-priv, DNS-pinned SSRF protection, and Ed25519-signed plugin catalog.
Read technical article →

Zero-Battery Mobile Push Wakeup (FCM / PushKit) & Native CallKit

How AiPBX wakes sleeping Android (FCM + ConnectionService) and iOS (PushKit + CallKit + custom aipbx-engine:// scheme) softphones in under 400 ms with zero continuous SIP socket drain, plus passwordless QR onboarding via REST API v1.
Read technical article →