# Repository Briefing: hkjarral/AVA-AI-Voice-Agent-for-Asterisk
> Source: https://repoforai.com/repo/hkjarral/AVA-AI-Voice-Agent-for-Asterisk (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/hkjarral/AVA-AI-Voice-Agent-for-Asterisk
- **Official Docs / Website**: https://operator.agent6789.com
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v7.7.5 (2026-11-25) — https://github.com/hkjarral/AVA-AI-Voice-Agent-for-Asterisk/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, MCP, GPU
- **Momentum**: 1,288 ★ total (+1 24h / +5 7d) · 290 forks
- **When to Use**: Best for: 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. Skip if: You want a fully managed phone stack, need production-mature outbound campaign tooling, or cannot own PBX compatibility testing and call-data governance.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- PBX boundary: ARI for call control; AudioSocket, ExternalMedia RTP, or opt-in Media WebSocket for media, subject to compatibility.
- Backend selection: Realtime providers or independently configured STT, LLM, and TTS stages, including supported OpenAI-compatible endpoints.
- Call and tool actions: Asterisk transfers, extension availability, voicemail, and hangup; MCP over Streamable HTTP and optional A2A delegation with per-agent access controls.
- Local transcription: An authenticated OpenAI-compatible Admin API exposes local STT without fallback to a cloud service or a dedicated transcription UI.
- Diagnostics: Admin UI Call History for per-call investigation, CLI health checks and sanitized support packages, and Prometheus-format metrics at port 15000 under `/metrics`.
- Release maintenance: v7.7.5 aligns provider, model, and voice catalogs across runtime, Admin UI, defaults, and CI, and improves Call History upgrades.
```

## Quick Start / Clone
```bash
docker logs admin_ui | grep -i password
```
