hkjarral/AVA-AI-Voice-Agent-for-Asterisk
Self-hosted Asterisk voice agents with realtime and modular AI backends
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
AVA Core is a Python application with two core services: ai_engine for live calls and admin_ui for configuration and operations. Asterisk or FreePBX remains the PBX: AVA uses ARI for call control and a separate media path for audio. Depending on the configuration, media can use AudioSocket, ExternalMedia RTP, or opt-in Media WebSocket. The AI side can use an integrated realtime voice provider or a pipeline with separate STT, LLM, and TTS adapters. local_ai_server and updater are optional services.
The dependency manifest includes ari, websockets, aiohttp, NumPy for audio resampling, and WebRTC VAD (webrtcvad) for speech detection. Integration extends beyond provider adapters: the project includes the MCP Streamable HTTP client and a2a-sdk for optional remote-agent delegation, with per-agent access controls for A2A. This separation lets operators change the inference backend without replacing the PBX, but the new backend must still be validated with the chosen media path and agent tools.
Key Capabilities & Differentiators
Realtime integrations include Deepgram, OpenAI Realtime, Google Live/Vertex, ElevenLabs, and xAI Grok. Modular deployments can mix supported speech and language backends, including OpenAI-compatible endpoints. Agents can transfer calls, check extension availability, send callers to voicemail, or hang up. Business integrations include Google and Microsoft calendars, Calendly booking, email, and HTTP summaries. The Admin UI configures providers and agents and supports filtering and exporting Call History.
The Admin API can also expose local STT through authenticated OpenAI-compatible transcription endpoints, with no cloud fallback or dedicated transcription UI. Plan the transcription workload around live-call priority if the two share STT capacity. Wideband calling requires both the opt-in wideband_pcm_16k audio profile and an end-to-end path that supports G.722; otherwise calls fall back to standard telephony audio.
Trade-offs & Limitations
AVA makes more sense than a hosted voice-agent service when an existing Asterisk estate and PBX-level routing matter. A hosted service can reduce infrastructure work; a direct provider integration can be simpler if one backend meets all requirements. AVA’s advantage is keeping routing on the PBX while giving operators a common place to configure agents, switch among supported backends, and investigate calls. The cost is qualification work: provider, media transport, audio profile, and tool support vary by combination. Check the compatibility and release validation matrices rather than treating those options as interchangeable.
Cloud inference reduces on-host compute needs but sends configured inputs to providers and introduces external service dependencies. Hybrid is not an on-premises data boundary; a local deployment still needs an explicit review of any enabled calendar, email, MCP, or A2A integration. Outbound campaigns and VICIdial integration remain alpha, and FreeSWITCH setup is community-maintained. AVA Operator is a separate early-access commercial management layer, not a requirement for the MIT-licensed Core.
Hardware & Deployment Guide
Start with Linux x86_64, Docker Compose v2, and Asterisk 18+ or FreePBX with ARI enabled. Check the transport compatibility matrix before selecting Media WebSocket or another media path with additional version or module requirements. The default Compose setup uses host networking; check Asterisk group permissions and set the ASTERISK_GID build argument if the host group differs from the default of 995. Cloud setups start at 2 CPU cores and 4 GB RAM. Local CPU or GPU sizing depends on model choice and call concurrency; there is no general VRAM target.
On a fresh install, preflight.sh --apply-fixes checks and prepares the host, and install.sh --ui starts only the Admin UI. Restrict port 3003 to trusted access, change the initial admin password, complete the wizard, and test the generated dialplan with a real two-way call. For existing deployments, use the migration path: v7.7.4 added SenseVoice STT with model validation and language and ITN controls; v7.7.5 synchronized provider catalogs, improved stored-credential protection and Call History upgrades, and included CPU image security fixes.
/metrics.Teams already running Asterisk or FreePBX that want an inbound phone agent for routing, voicemail, or scheduling, with control over where speech and language inference runs.
You want a fully managed phone stack, need production-mature outbound campaign tooling, or cannot own PBX compatibility testing and call-data governance.
Quick Start & Installation
docker logs admin_ui | grep -i password
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| AVA-AI-Voice-Agent-for-Asterisk ★ | 1.3k | +5 | Python | MIT | Self-hosted Asterisk voice agents with realtime and modular AI backends |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| daily_stock_analysis | 75.9k | +896 | Python | MIT | A Python Agent workbench for multi-market watchlist research and scheduled repor |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/hkjarral/AVA-AI-Voice-Agent-for-Asterisk.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about AVA-AI-Voice-Agent-for-Asterisk
How does AVA connect to an existing Asterisk or FreePBX system?
How much CPU, RAM, or VRAM should I budget?
Can I self-host AVA Core for commercial use without buying AVA Operator?
When is AVA preferable to a hosted voice-agent service or a direct provider integration?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy