Business context
- Telephony teams still change extensions, trunks, and IVRs by editing raw Asterisk configs—slow, error-prone, and hard to audit.
- Unified PBX provides a modern admin console and API for provisioning, dial plan, queues, and operational dashboards on top of Asterisk.
- The live demo at /unifiedpbx/login runs the Next.js UI against Nest APIs under /unifiedpbx/v1 on the same eaibap.com host.
- It administers the PBX; it is not a full outbound contact-center SKU—that is UnifiedCX or EAIBAP campaigns depending on scope.
- Shares Redis, Postgres, and loopback Asterisk (AMI 5038, WebSocket 8088) with adjacent stacks on typical VPS deployments.
Product pillars
- Extension, trunk, and DID provisioning
- IVR, queues, ring groups, and dial-plan tooling
- AMI/ARI integration for call control and monitoring
- Operations dashboard and structured logging
- API-first NestJS backend for automation and MSP embed
Who it is for
- IT and telephony admins
- Contact center operators
- MSP partners
Key capabilities
- Extension and trunk provisioning
- IVR, queues, and ring groups
- AMI/ARI integration with Asterisk
- BullMQ jobs and Redis-backed workers
- Optional Prometheus metrics on the same VPS stack
Provisioning and dial plan
Create extensions, assign DIDs, and publish dial-plan changes through a guided UI instead of hand-editing Asterisk configs for every change.
Operations dashboard
Monitor active channels, agent states, and queue depth. Restart stuck calls and trace failures from structured logs.
API-first architecture
NestJS API under /unifiedpbx/v1 with a Next.js admin UI. Suitable for embedding in larger deployments or white-label operator tools.
Shared infrastructure
Runs beside EAIBAP Docker Redis (DB 1), Postgres (Unified PBX database), and host Asterisk (AMI 5038, WebSocket 8088 on loopback).
When it fits
| Buyer situation | Direction |
|---|---|
| IT needs governed Asterisk admin without hand-editing configs for every change | Unified PBX — use the live admin demo |
| Outbound campaigns, lead upload, and agent dialer panels | UnifiedCX — UnifiedCX contact center |
| Insurance quotes, policies, and agency hierarchy | Insurance ERP — Insurance ERP |
| CRM, AI voice agents, workflows, and integration hub as one product | EAIBAP platform — EAIBAP platform |
| Full ERP with CRM, HRMS, finance, and inventory modules | UnifiedERP — UnifiedERP |
System architecture
Next.js admin UI calls a NestJS API mounted at /unifiedpbx/v1. PostgreSQL stores provisioning and CDR-related entities; Redis and BullMQ run background jobs (reloads, sync, metrics). Asterisk is reached via AMI/ARI on loopback for channel control and queue state—not replaced by the app layer.
Logical modules
| Module | Layer | Responsibility |
|---|---|---|
| Provisioning | API | Extensions, trunks, DIDs, dial-plan publish |
| Routing | API | IVR, queues, ring groups, inbound/outbound routes |
| Operations | UI | Dashboards, channel view, queue depth |
| Jobs | BullMQ | Async reloads, sync, optional metrics export |
| Telephony adapter | Asterisk | AMI/ARI command and event bridge |
Deployable processes
| Process | Port | Role |
|---|---|---|
| unifiedpbx-web | 3000 | Next.js admin UI (proxied on eaibap.com) |
| unifiedpbx-api | — | NestJS REST under /unifiedpbx/v1 |
| Asterisk | 5038/8088 | Media and signaling (host service) |
Key request flows
- Admin creates extension → API writes DB → job triggers Asterisk config apply → endpoint registers.
- Queue depth and active channels polled via AMI for dashboard tiles.
- Optional Prometheus metrics on the same VPS stack for SRE visibility.
API reference
NestJS Swagger for Unified PBX at /unifiedpbx/api. REST resources live under /unifiedpbx/v1; use Swagger to explore provisioning, routing, and operations tags with Bearer auth.
| Area | Business problem | Example endpoints |
|---|---|---|
| Extensions & DIDs | Provision endpoints and assign numbers | Extensions, DIDs, device provisioning tags |
| Trunks & routing | Carrier connectivity and dial plan | Trunks, inbound/outbound routes, dial-plan publish |
| IVR, queues, ring groups | Call routing and contact-center primitives on Asterisk | IVR, Queues, Ring Groups, Time Conditions tags |
| Operations & monitoring | Live channels, queues, logs, and metrics | Dashboard, PBX Logs, Operation Logs, Metrics (Prometheus) tags |
| Backup & security | Restore and MFA for admins | Backup, MFA, AutoClip/CC route policy tags |
Typical integrations
Asterisk AMI/ARI · Redis / BullMQ · PostgreSQL · Prometheus (optional)
Try the live demo
Use the demo buttons above to open the running product on eaibap.com (sample or seeded data).