How to Add Voice AI to 3CX Without Replacing Your Phone System

Most businesses on 3CX aren't looking to start over. You've got your DIDs configured, your ring groups sorted, and your team trained on the admin panel. What you want is an AI receptionist on top of what's already working — not a full platform migration that takes months and breaks things along the way.
That's actually possible. Many teams successfully add AI to 3CX phone system setups without replacing a single extension or changing their carrier. You need to route calls correctly and pick an integration path that fits how 3CX handles outbound SIP traffic.
This guide covers two approaches that work in production: the fast path using phone number forwarding, and the direct SIP path using LiveKit for teams who need full infrastructure control. By the end, you'll know exactly how to add AI to 3CX phone system without touching your core telephony setup — and you'll have the step-by-step 3CX admin configuration to get there.
According to Gartner (2023), 80% of customer service interactions will be handled by generative AI by 2028 — making voice AI integration one of the most pressing infrastructure decisions for SMBs running PBX systems today.
- The fastest path: 3CX's "Forward to External Number" sends unanswered calls to your AI agent's phone number via your existing PSTN carrier
- For a direct SIP trunk with no PSTN forwarding hop, LiveKit supports IP-based auth and bridges 3CX to any AI model
- Your existing 3CX extensions, DIDs, ring groups, and time-based routing stay completely untouched with either approach
- Use ElevenLabs TTS only with the
eleven_turbo_v2_5model — the standard model adds 250–400ms of noticeable latency - Phone number forwarding takes one day to set up; LiveKit direct SIP requires 6–10 weeks for a production deployment
Why Businesses Add AI to 3CX Phone System Without Replacing It
Most 3CX deployments represent months of configuration work: custom ring groups, DID assignments, time-based routing rules, call recording, and in some cases physical desk phones or SIP adapters tied to the system. Replacing all of that for an AI phone platform isn't a business decision. It's a disruption you'd spend weeks recovering from.
Adding a voice AI layer on top of 3CX is the practical alternative. The AI handles specific scenarios — after-hours calls, overflow queues, first-line triage, appointment booking — while your existing setup handles everything else. Nothing breaks, nothing gets reconfigured, and your staff doesn't need to learn a new system.
The Cost Case for AI on 3CX
There's a real cost argument here. A full-time receptionist costs $30,000–$50,000 a year in most markets. AI call handling costs a few cents per minute. For businesses getting 150–300 calls a month that go to voicemail or get dropped because no one's available, the payback period is short.
- Receptionist salary (US average): $35,000–$50,000/year
- AI call handling cost: $0.05–$0.15 per minute depending on platform
- Average SMB call volume (unanswered): 150–300 calls/month
- Typical AI ROI payback period: 3–6 months
- After-hours coverage gap closed immediately: 100%
According to McKinsey's 2024 Tech Trends report, businesses deploying AI in customer-facing workflows report a 25–35% reduction in cost per interaction within the first year.
Coverage Hours: The Operational Gain
3CX handles business hours well. After-hours calls typically hit voicemail or a generic IVR with no resolution. A voice AI agent answers, qualifies, schedules, or escalates at 2am the same way it does at 2pm. For teams dealing with international time zones — particularly GCC and UK businesses serving markets across multiple time zones — that's a concrete operational gain.
The goal isn't to replicate 3CX. It's to add AI to 3CX phone system in a way that extends what you've already built, not replaces it.
Third Rock Techkno has deployed Voice AI on 3CX for businesses across USA, UK, and Australia. Book a free 30-minute architecture call to map out the right path for your setup. Get a free consultation →
Two Paths to Connect AI to 3CX
There are two proven integration approaches — each with a different complexity and cost profile. The right one depends on your call volume, compliance requirements, and available engineering resources.
Option 1: Phone number forwarding. Your 3CX queue sends unanswered calls to the AI agent's phone number via your existing PSTN carrier. No SIP trunk changes, no new infrastructure. Works with any AI platform (Vapi, Retell, Bland, or others) that gives you a real phone number for your agent. This is the right starting point for most businesses.
Option 2: LiveKit direct SIP trunk. LiveKit is an open-source media server that supports IP-based SIP auth. You build a direct SIP trunk from 3CX to LiveKit, and LiveKit routes the call to your AI model. No PSTN hop, no per-minute carrier costs, full control over audio routing. Plan 6–10 weeks for a production deployment.
For most IT managers and business owners, Option 1 gets you a working 3CX AI voice agent in a day. Option 2 is the right investment when you're scaling to hundreds of AI-handled calls per month, or when data residency requirements make PSTN routing problematic.
Option 1: Phone Number Forwarding — The Fast Path to 3CX AI Integration
This is the recommended approach for most businesses looking to add AI to 3CX phone system. It doesn't touch your SIP trunk configuration, doesn't require new infrastructure, and works with any major AI voice platform that assigns a real phone number to your agent.
How the Call Flow Works
Your 3CX queue or ring group handles incoming calls normally. If the call isn't answered within your ring timeout — because agents are busy, unavailable, or it's after hours — 3CX forwards it to an external phone number. That number belongs to your AI agent.
The call leaves 3CX through your PSTN carrier, reaches the AI agent's number, and the AI takes the conversation from there. From the caller's perspective, it's one uninterrupted phone call. There's no audible transfer click, no hold music gap, and nothing that signals they've been routed to a different system.
- Caller dials your main DID
- 3CX routes call to the configured queue or ring group
- Ring timeout expires (or agents unavailable)
- 3CX forwards call to AI agent's external phone number via PSTN
- AI agent answers and handles the conversation
- Call outcome logged in AI platform dashboard and CRM via webhook
Set Up Your AI Agent First
Before touching 3CX, get your AI agent running and tested on its own. You'll need an active agent with your business context, call handling logic, and escalation paths configured. Purchase a phone number through the platform and assign it to your agent.
Test the agent by calling its number directly from your mobile. Run through your typical call scenarios — a new enquiry, a callback request, an after-hours service question. Only move to the 3CX configuration step once the agent handles these correctly on its own. If you're syncing call outcomes to a CRM, set up your webhook endpoints now.
Using ElevenLabs for Voice Quality
If voice naturalness is a brand priority — a custom persona, an Arabic or GCC dialect, or a voice that matches an existing brand character — you can connect ElevenLabs TTS to your AI agent. Most platforms support ElevenLabs as a voice provider through a simple API key and voice ID configuration.
Use the eleven_turbo_v2_5 model only. The standard ElevenLabs model adds 250–400ms of latency on top of your baseline. Callers notice that pause. The turbo model adds approximately 80ms, which fits within a normal conversational beat. Don't add ElevenLabs if you're running high-volume inbound lines where call throughput is the priority — the default platform TTS handles concurrency better with lower latency overhead.
Not sure which AI voice platform (Vapi, Retell, Bland) fits your 3CX setup? Our team has deployed all three across different client architectures. Get a free consultation →
Step-by-Step: Configure 3CX to Route Calls to Your AI Agent
This is the 3CX admin side of Option 1 — the part that actually lets you add AI to 3CX phone system without rebuilding anything. You're configuring queue or ring group behaviour, not creating any SIP trunks or modifying your existing trunk settings.
Step 1: Open the Queue or Ring Group You Want AI to Cover
Log into your 3CX management console and go to Call Flow > Queues (or Ring Groups, depending on your setup). Select the queue that handles the calls you want the AI agent to receive. If you don't have a dedicated queue yet, create one and assign it the agents who handle this call type.
Step 2: Set Your Ring Timeout
Configure Ring Time to match how long 3CX should try your human agents before the AI takes the call.
- After-hours AI only: Set ring time to 0 seconds. The queue will immediately move to the no-answer destination when agents are offline
- Overflow during business hours: Set 20–30 seconds — gives available agents a fair chance to pick up before the AI steps in
- Hybrid (both): Use 3CX Time Conditions to apply different ring timeouts by schedule
- Priority overflow: Set queue threshold — if more than X callers are waiting, forward to AI immediately
- VIP queues: Keep ring time high (45–60s) and only use AI as absolute last resort for your top accounts
Step 3: Set the No-Answer Destination to an External Number
This is the core setting. Under "Destination if no answer" or "On full / no answer" (the label varies by 3CX version), select External Number or Outside Number. Enter your AI agent's phone number in E.164 format — for example, +14155551234 for a US number or +447911123456 for a UK number.
Confirm the number format matches what your outbound SIP carrier expects. If your carrier uses 10-digit format without the country code prefix, match that format here and make sure E164 is disabled in the corresponding outbound rule.
Step 4: Verify Caller ID Pass-Through
Check that your SIP trunk's outbound caller ID parameter is set to $OriginatorCallerID. This passes the original caller's number to the AI agent instead of your main DID. Without it, your AI call logs and CRM records will show your main line number as the caller on every AI-handled call, making call attribution useless. This setting is in your SIP trunk template under the Advanced tab.
Step 5: Add a Digital Receptionist Menu (Recommended)
Before routing callers directly to the overflow queue, consider placing a Digital Receptionist in front of it. Set up menu options like "Press 1 for sales, Press 2 for support" and route only the option you want the AI to handle to the overflow queue. This keeps your main call volume under human control and sends only the specific caller segment to the AI agent — which also makes the AI's job simpler, since callers have already identified what they need.
Step 6: Test the Complete Call Flow
Call your main DID from an external number. Let the ring time expire. Confirm the call forwards to your AI agent's number, the AI answers, and the conversation flows correctly. Check your AI platform dashboard to verify the call is logged with the correct originating caller ID. If the call drops during the transfer, check your outbound rules in 3CX and confirm the AI agent's phone number is allowed in your outbound route.
Option 2: LiveKit Direct SIP Trunk — For Full Infrastructure Control
LiveKit's SIP gateway accepts IP-based authentication natively — you whitelist your 3CX server's IP and it registers exactly as it would to any PSTN carrier.
According to the LiveKit documentation, this approach gives you direct access to the audio stream inside a room, meaning call audio never touches a third-party platform's managed environment — important for teams with data residency or GDPR compliance requirements.
When to Use LiveKit Over Phone Forwarding
- Scale: 100+ AI-handled calls per month where per-minute PSTN forwarding costs accumulate
- Data residency: Industry regulations requiring call audio to stay within a specific region
- Latency targets: Sub-300ms response time requirements that phone forwarding's PSTN hop can't consistently achieve
- Custom AI stack: You're building your own STT/LLM/TTS pipeline rather than using a managed platform
- Compliance: HIPAA, PCI, or financial services requirements that prohibit call audio routing through third-party networks
- Integration depth: Need real-time CRM writes, live agent escalation, or call recording within your own infrastructure
LiveKit Deployment Overview
A production LiveKit deployment for 3CX typically requires the following infrastructure components:
- 2 x LiveKit server instances behind an AWS NLB or GCP Network Load Balancer (for failover)
- Minimum 4 vCPU / 8GB RAM per instance — handles 30–50 concurrent calls
- Static public IP for SIP trunk registration
- SIP gateway enabled in LiveKit config (port 5060)
- G.711 ulaw (PCMU) codec on the 3CX-facing trunk — no compression, no conversion overhead
- Prometheus metrics exported to Grafana for production visibility
According to the LiveKit Agents framework documentation, the Python SDK provides a built-in pipeline for subscribing to audio tracks, running STT, calling an LLM, and publishing TTS audio back into the room — the core loop for any voice AI agent deployment.
How 3CX Routes Calls to LiveKit
Once the SIP trunk is configured, the call flow works as follows. A customer dials your DID. 3CX routes the call through its queue. When the ring timeout expires or the no-answer condition triggers, 3CX forwards the call out via the LiveKit SIP trunk (not PSTN). LiveKit's SIP gateway receives the call, matches it to a dispatch rule, and places the call into a LiveKit room. Your AI agent, running in that room, picks up the audio stream and handles the conversation end-to-end.
Choosing Your AI Voice Platform
The AI voice platform you choose determines your agent's capabilities, supported languages, and integration depth. For Option 1 (phone forwarding), any platform that provides a real phone number for your agent works. The main options on the market differ primarily in their setup complexity, supported languages, and concurrency limits.
Vapi vs Retell vs Bland for 3CX Integration
- Vapi: Most developer-friendly API, strong webhook support, built-in CRM integrations, supports 50+ languages. Best for teams who want to build a fully custom agent prompt and call flow. Managed platform — no infrastructure to maintain
- Retell AI: Faster default latency out of the box (~200ms on average), pre-built call flow templates, strong analytics dashboard. Best for teams that want a working agent quickly without custom prompt engineering
- Bland AI: Lowest cost per minute at scale, good for high-volume outbound use cases, supports custom voices. Best for businesses running 500+ AI calls per month where per-minute cost is the primary constraint
- LiveKit (self-hosted): Full infrastructure control, no per-minute platform cost after deployment, required for data residency compliance. Best for enterprise teams with in-house DevOps capability
According to a Statista market analysis (2024), the global conversational AI market is projected to reach $18.4 billion by 2026 — with voice AI in business telephony representing the fastest-growing segment at 28% CAGR.
Language and Dialect Support for GCC and UK Markets
For businesses in the GCC (UAE, Saudi Arabia, Qatar, Kuwait) and UK, dialect and accent quality matters more than it does in the US market. Key considerations:
- Arabic support: Vapi and Retell both support Modern Standard Arabic. For Gulf dialects (Khaleeji), you'll need ElevenLabs with a custom voice cloned from a native speaker
- British English: All major platforms support UK English accent voices natively. ElevenLabs has the most natural British English options
- Code-switching (Arabic/English): None of the managed platforms handle mid-sentence language switching reliably. LiveKit with a custom LLM prompt is the only current solution
Testing, Monitoring, and Ongoing Optimisation
A working demo and a production-ready system are different things. These are the operational checks that separate a reliable deployment from one that causes incidents at 2am.
Pre-Go-Live Testing Checklist
- Call the AI agent's number directly from mobile — confirm it answers correctly
- Let the 3CX ring timeout expire — confirm the forward triggers as configured
- Check caller ID in AI platform dashboard — confirm it shows original caller number, not your main DID
- Test the after-hours time condition (if configured) — confirm AI activates outside business hours
- Run a webhook test — confirm CRM receives call data with correct contact mapping
- Test escalation path — confirm "transfer to agent" works if the AI escalates mid-call
Call Quality Metrics to Track
- Answer rate: % of forwarded calls answered by AI (should be 99%+)
- First response latency: Time from caller speaks to AI responds (target <300ms)
- Escalation rate: % of calls transferred to human agents (track weekly)
- Resolution rate: % of calls where AI achieved the goal without human intervention
- Drop rate: % of calls disconnected before completion (flag anything above 2%)
FAQs
Can I connect Vapi directly to 3CX via SIP trunk?
No. Vapi uses credential-based SIP authentication — it expects a username and password on every inbound call. 3CX SIP trunks use IP-based authentication and send no credentials. These two models are incompatible at the protocol level. The correct approach is to get a phone number from Vapi, assign it to your agent, and configure 3CX to forward unanswered calls to that number via your existing PSTN carrier.
How do I route calls to my AI agent in 3CX only outside business hours?
Use 3CX's Time Conditions to split your call flow by schedule. During business hours, calls go to your human agents as normal. Outside business hours, the time condition redirects calls to a queue with a short or zero ring timeout, which then forwards to your AI agent's phone number. You configure this entirely inside 3CX with no changes to the AI platform needed.
Will callers know they're talking to an AI?
Not from the call routing itself. The forward is a standard PSTN transfer with no announcement or audible signal. What callers hear depends entirely on your AI agent's greeting. If you want transparency, include a line like "You've reached our AI assistant" in the agent's opening. If not, the AI can introduce itself by your business name without any disclosure.
What's the real difference between Vapi and LiveKit for 3CX AI integration?
Vapi is a managed AI voice platform with credential-based SIP auth, a dashboard for building agents, and hosted infrastructure. It can't connect directly to 3CX via SIP trunk, so you use phone number forwarding as the integration path. LiveKit is an open-source media server with IP-based SIP auth that connects directly to 3CX as a standard SIP trunk. Vapi is faster to start with; LiveKit gives you a direct integration but requires real engineering resources to deploy.
Will adding an AI agent affect my existing 3CX extensions and internal calls?
No. You're adding a forwarding rule to specific queues or ring groups and nothing else in 3CX is touched. Your existing extensions, internal calls, DID assignments, ring groups, and time-based routing all operate exactly as before. The AI only receives calls you explicitly route to it through the no-answer or overflow destination in a specific queue.
How much does it cost to add AI to a 3CX phone system?
Phone number forwarding (Option 1) costs nothing to set up in 3CX — you pay only the PSTN forwarding rate on your existing carrier contract, plus the AI platform subscription (typically $50–$300/month for SMB volumes). LiveKit (Option 2) requires a cloud server ($80–$200/month for a 4 vCPU VM) plus engineering time for the initial deployment. At 200+ AI-handled calls per month, the LiveKit fixed cost typically beats per-minute PSTN forwarding.
Which AI voice platforms support Arabic for GCC businesses?
Vapi and Retell both support Modern Standard Arabic. For Gulf dialects — Khaleeji, Egyptian Arabic, Levantine — you'll need ElevenLabs TTS with a custom voice trained on dialect-specific audio. None of the current managed platforms handle Arabic/English code-switching within a single call reliably; a LiveKit deployment with a custom LLM prompt is the current best solution for that use case.