Provides VoIP calling capabilities through Asterisk PBX systems, enabling AI agents to make phone calls and handle voice conversations
Enables VoIP calling through Cisco Unified Communications Manager (CUCM), allowing AI agents to make phone calls via enterprise Cisco phone systems
Integrates with OpenAI's Real-Time Voice API and o3-mini model to power AI-driven phone conversations and generate sophisticated call instructions from simple briefs
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CallCenter.js MCPcall my dentist to reschedule my 3pm appointment to next Tuesday"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CallCenter.js MCP + CLI
An MCP Server, CLI tool, and API that makes phone calls on your behalf using VoIP.
Just tell Claude what you want to accomplish, and it will call and handle the conversation for you. This is essentially an MCP Server that bridges between OpenAI's Real-Time Voice API and your VoIP connection to call people on your behalf.
β οΈ Vibe-coded side project! Please do not use this in any kind of professional context. This is a side project coded in a weekend. There are no guard rails. Your MCP client can call any number with this, even if you don't ask it to. In fact, it has done so during testing - it called a random number during the night "for testing" and played back scary low-pitched noises - then claimed it called MY number. So YMMV, no warranties. See disclaimer below.
π Example: Order Pizza with Claude
You: "Can you call Tony's Pizza and order a large pepperoni pizza for delivery to 123 Main St? My name is John and my number is 555-0123."
Claude automatically calls the restaurant:
Pizza ordered successfully! π
Related MCP server: Audio MCP Server
π Quick Context for the Uninitiated
VoIP (Voice over IP) is how you make phone calls over the internet instead of traditional phone lines. SIP (Session Initiation Protocol) is the language these systems speak to connect calls. Think of it as HTTP but for phone calls.
Fritz!Box is a popular German router/modem that happens to have a built-in phone system (PBX). If you have one, you already have everything you need to make VoIP calls - this tool just connects to it. Outside Germany, you might know similar devices from other brands, or use dedicated VoIP services like Asterisk, 3CX, or cloud providers.
MCP (Model Context Protocol) is Anthropic's standard for connecting AI assistants like Claude to external tools and services. It's what lets MCP clients actually do things instead of just talking about them.
π What This Enables
π MCP Server - Use directly in Claude Code or any MCP client (most popular usage)
π₯οΈ CLI Tool - Command-line interface for direct phone calls
π TypeScript API - Programmatic library for building voice applications
Built as a bridge between OpenAI's Real-Time Voice API and VoIP networks, with multiple codec support (G.722, G.711), and expanded SIP protocol support for broad VoIP compatibility. Compatible with the latest gpt-realtime model released August 28, 2025.
ποΈ System Architecture
β οΈ Vibe-coded project! Developed and tested on Fritz!Box (a German router with built-in VoIP) only. Other provider configs are research-based but untested. YMMV, no warranties. See disclaimer below.
π MCP Client Integration (Most Popular!)
Perfect for when your coding agent needs to call library authors to complain about their documentation! π
Quick Setup
Then just ask your MCP Client to make calls:
"Can you call the pizza place and order a large pepperoni? My number is 555-0123."
Your MCP Client will automatically handle the entire conversation using the AI Voice Agent! π€π
β¨ Key Features
ποΈ Multiple Codec Support: G.722 wideband (16kHz) + G.711 fallback for broad compatibility
π§© Compiler-Free WASM Codec: Ships with a prebuilt G.722 WebAssembly module so
npxusers get wideband audio without installing build tools (native addon still available for max performance)π€ AI-Powered Conversations: Uses OpenAI's Real-Time Voice API with the latest
gpt-realtimemodel (released August 28, 2025) for actual calls, with o3-mini model for instruction generationπ Automatic Language Detection: Intelligently detects conversation language from call briefs and configures transcription accordingly
π Auto Voice Selection: New 'auto' mode where o3-mini selects optimal voice based on call context (formality, industry, goals)
π Voice Characteristics: Full support for all 10 OpenAI Realtime API voices with gender and personality awareness
π Expanded SIP Support: Configurations for common SIP providers (Fritz!Box tested, others experimental)
π§ Smart Configuration: Auto-detects provider requirements and optimizes settings
π Enterprise-Ready: Supports advanced SIP features (STUN/TURN, session timers, transport fallback)
π Robust Connection Management: Automatic reconnection with intelligent error handling
β Built-in Validation: Comprehensive configuration validation with network testing
π― Provider Profiles: Pre-configured settings for popular SIP systems
π MCP Server: Integrate with MCP clients like Claude Code
π TypeScript API: Programmatic library for building voice applications
π Call Brief Processing: Natural language call instructions using o3-mini model with structured JSON output
π΅ Optional Call Recording: Stereo WAV recording with caller/AI separation
π Quick Start
Option 1: Run Instantly with npx (No Installation) β‘
Fastest way to try it out:
Or using a .env file:
Note: High-quality G.722 audio ships as a prebuilt WebAssembly module, so npx works even on machines without compilers. If you want the faster native addon instead, run npm run build:native (or npm run build:all) after cloning.
Option 2: Local Installation
Prerequisites
Node.js 20+
(Optional) Python 3.x + C/C++ build tools β only needed if you plan to rebuild the native addon instead of using the bundled WebAssembly codec
macOS: Xcode Command Line Tools (
xcode-select --install)Windows: Visual Studio Build Tools
Linux:
build-essentialpackage
OpenAI API key
Note: The prebuilt WebAssembly codec already provides wideband G.722 audio out of the box. Rebuilding the native addon is optional and mainly useful for squeezing out a little more performance.
Installation
Configuration
Edit config.json with your settings:
π― Usage Options
1. MCP Server (Claude Code Integration) β
Most popular usage - integrates with Claude Code for seamless AI-powered calling. Perfect for when your coding agent needs to call library authors to complain about their documentation! π
Quick Setup with npx (Recommended)
Option 1: Using MCP Client CLI (Easiest)
β οΈ Important: Replace the placeholder values with your actual SIP credentials and OpenAI API key, or the server will fail to connect.
Option 2: Manual Configuration
Configure in Claude Code's MCP settings to automatically pull from GitHub:
Alternative: Local Installation
For local development or if you prefer local installation:
Or configure Claude Code with local installation:
Available MCP tools:
simple_call- Make calls with automatic instruction generationadvanced_call- Make calls with granular parameter control
Example usage in MCP Client:
More examples:
The MCP Client automatically handles the entire conversation using the AI Voice Agent!
2. Command Line Interface
Perfect for when you need to π
π‘ Use
The --brief option uses OpenAI's o3-mini model to generate sophisticated instructions from your simple description, while --instructions sends your text directly to the Real-Time Voice API. Since the Real-Time Voice API is optimized for speed (not sophistication), --brief typically produces much better call outcomes.
CLI Options
3. Programmatic API
π API Reference
makeCall(options: CallOptions): Promise<CallResult>
Make a phone call with the AI agent.
CallOptions
CallResult
createAgent(config, options?): Promise<VoiceAgent>
Create a VoiceAgent instance for advanced use cases.
Configuration Structure
Environment Variables
All configuration options can be set via environment variables (useful for npx usage):
Required Variables:
Optional Variables:
Priority order: CLI flags > Config file > Environment variables
β Quick Success Check
Before making real calls, validate your setup with these safe tests:
1. Configuration Validation
2. Test Call to Yourself (Fritz!Box users)
3. What to Expect
β Working setup: Clear audio, proper AI responses, clean call termination
β οΈ Network issues: "Connection failed" errors β check firewall/STUN settings
β οΈ Auth problems: "401 Unauthorized" β verify SIP credentials
β οΈ Codec issues: Poor audio quality β G.722 compilation may have failed
Pro tip: Start with
--duration 30for test calls to avoid long waits if something goes wrong.
π Configuration Validation
The built-in validation system provides comprehensive analysis:
The validator will check:
β Configuration syntax and required fields
β Provider-specific requirements
β Network connectivity to SIP server
β STUN server reachability
β Codec availability (G.722/G.711)
β Provider compatibility score
π SIP Provider Compatibility
β Actually Tested
AVM Fritz!Box - German router brand with built-in VoIP/SIP phone system β WORKS (only one actually tested)
π€· Vibe-coded Configs (Educated Guesses)
Asterisk PBX - Open source PBX (FreePBX, Elastix, etc.) π€· UNTESTED
Cisco CUCM - Enterprise Unified Communications π€· UNTESTED
3CX Phone System - Popular business PBX π€· UNTESTED
Generic SIP Providers - Standards-compliant SIP trunks π€· UNTESTED
π§ Provider-Specific Features
The provider profiles are based on research and documentation, not actual testing:
Provider | Transport | NAT Traversal | Session Timers | PRACK | Keepalive |
Fritz Box | UDP | Not needed | Optional | Disabled | Re-register |
Asterisk | UDP/TCP | STUN | Supported | Optional | OPTIONS ping |
Cisco CUCM | TCP preferred | STUN required | Required | Required | OPTIONS ping |
3CX | TCP/UDP | STUN | Supported | Optional | Re-register |
Configuration Decision Tree
π Configuration Examples
The project includes ready-to-use configurations for all major providers:
config.example.json- AVM Fritz!Box (home/SMB default)config.asterisk.example.json- Asterisk PBX with advanced featuresconfig.cisco.example.json- Cisco CUCM enterprise setupconfig.3cx.example.json- 3CX Phone System configurationconfig.generic.example.json- Generic SIP provider template
π΅ Audio Quality & Codecs
Codec Priority & Negotiation
G.722 (Preferred) - 16kHz wideband, superior voice quality
G.711 ΞΌ-law (Fallback) - 8kHz narrowband, universal compatibility
G.711 A-law (Fallback) - 8kHz narrowband, European standard
G.722 Implementation
Prebuilt WebAssembly codec bundled with the package so every install gets wideband audio out of the box
Native C++ addon still available for optimal performance when you opt-in with
npm run build:nativeBased on reference implementations from CMU and Sippy Software
Automatic fallback to G.711 if codec loading fails for any reason
Real-time encoding/decoding with low latency
Optional Call Recording
Stereo WAV format with caller on left channel, AI on right channel
Optional filename specification
Synchronized audio streams for perfect alignment
High-quality PCM recording at native sample rates
Testing Audio Quality
π€ AI Call Brief Processing
Why This Matters: Real-Time Voice API Needs Better Instructions
OpenAI's Real-Time Voice API is optimized for speed, not sophistication. It's great at natural conversation but struggles with complex, goal-oriented tasks without very specific instructions. Here's the problem:
β What doesn't work well:
β What's tedious and error-prone:
β What works brilliantly:
How It Works
The system uses OpenAI's o3-mini reasoning model (their latest small reasoning model - smart but fast) to automatically generate detailed, sophisticated instructions from your simple brief. The o3-mini model:
Analyzes your brief and understands the goal
Creates conversation states and flow logic
Generates specific instructions for each phase of the call
Handles edge cases like voicemail, objections, and alternatives
Adapts language and tone based on context
Provides fallback strategies when things don't go as planned
Call Flow Sequence
Before/After Example
Your simple input:
What o3-mini generates (excerpt):
Automatic Adaptations
The o3-mini brief processor automatically:
Detects language from your brief and generates instructions in that language
Creates conversation flow with logical states and transitions
Handles cultural context (German restaurants vs. American vs. Japanese)
Generates appropriate examples with real phrases (no placeholders)
Provides voicemail scripts for when nobody answers
Plans for objections and alternative solutions
When to Use Each Approach
Use for 95% of calls - it's easier and produces better results
Use only when you need very specific, custom behavior
Brief processing is perfect for: reservations, appointments, business calls, customer service
Direct instructions are better for: highly specialized scenarios, testing, or when you've already perfected your prompt
π€ Voice Selection
The AI agent supports 10 different voices from OpenAI's Realtime API, each with unique characteristics. By default, the system uses auto mode where o3-mini intelligently selects the optimal voice based on your call's context.
Available Voices
Voice | Gender | Description | Best For |
marin | Female | Clear, professional feminine voice | All-purpose: business calls, customer support, negotiations |
cedar | Male | Natural masculine voice with warm undertones | All-purpose: professional calls, consultations, service interactions |
alloy | Neutral | Professional voice with good adaptability | Technical discussions, business contexts, general inquiries |
echo | Male | Conversational masculine voice | Casual to formal interactions, versatile tone |
shimmer | Female | Warm, expressive feminine voice | Empathetic conversations, sales, professional contexts |
coral | Female | Warm and friendly feminine voice | Customer interactions, consultations, support calls |
sage | Neutral | Calm and thoughtful voice | Medical consultations, advisory roles, serious discussions |
ash | Neutral | Clear and precise voice | Technical explanations, instructions, educational content |
ballad | Female | Melodic and smooth feminine voice | Presentations, storytelling, engaging conversations |
verse | Neutral | Versatile and expressive voice | Dynamic conversations, adaptable to any context |
Auto Voice Selection (Recommended)
The auto mode (default) uses o3-mini to analyze your call context and select the most appropriate voice:
Manual Voice Selection
You can override auto selection when you have specific requirements:
Configuration Options
Set default voice in your config file or environment:
Voice Selection Guidelines
The auto mode considers these factors:
Formality Level: High (cedar, marin, sage) β Medium (alloy, verse) β Low (echo, coral, shimmer)
Industry Context: Healthcare (sage, shimmer), Finance (cedar, sage), Retail (coral, echo), Tech (alloy, ash)
Goal Type: Authority needed (cedar, sage), Friendliness (coral, shimmer), Efficiency (marin, alloy)
Language: Voices adapt to detected language from your call brief
MCP Integration
The MCP tools strongly recommend auto mode but support manual override:
π Advanced Features
Smart Connection Management
Automatic Reconnection: Exponential backoff with provider-specific error handling
Transport Fallback: UDP β TCP β TLS based on what works
Provider-Aware Error Recovery: Different strategies for Fritz Box vs. Asterisk vs. Cisco
Network Change Handling: Adapts to network connectivity changes
Enhanced SIP Protocol Support
STUN/TURN Integration: NAT traversal for cloud and enterprise deployments
Session Timers (RFC 4028): Connection stability for long calls
PRACK Support (RFC 3262): Reliable provisional responses for enterprise systems
Multiple Transports: UDP, TCP, TLS with intelligent fallback
Configuration Intelligence
Provider Auto-Detection: Identifies provider from SIP domain/IP
Requirements Validation: Ensures all provider-specific needs are met
Network Testing: Real connectivity tests to SIP servers and STUN servers
Optimization Suggestions: Actionable recommendations for better performance
π οΈ Development & Testing
Build Commands
Configuration Testing
Project Structure
π Validation & Diagnostics
The built-in validation system provides comprehensive analysis:
Configuration Report Example
Network Diagnostics
Real SIP Server Testing: Actual UDP/TCP connectivity tests
STUN Server Validation: Tests NAT traversal capability
Latency Measurement: Network performance assessment
Provider-Specific Recommendations: Tailored advice based on detected issues
π§ Troubleshooting
Configuration Issues
Run validation first:
npm run validate:detailedCheck provider compatibility:
npm run validate -- --provider fritz-box config.jsonGet specific fix suggestions:
npm run validate:fix
Network Connectivity
Fritz Box: Usually works with UDP on local network
Cloud/Enterprise: May need STUN servers for NAT traversal
Firewall Issues: Ensure SIP port (5060) and RTP ports are open
Audio Quality
Verify G.722 is available:
npm run test:codecsCheck codec negotiation in logs:
β Selected codec: PT 9 (G722/8000)Network issues: High latency/packet loss affects audio quality
Build Problems
Native compilation fails (only happens if you explicitly ran
npm run build:nativeornpm run build:all): stick with the bundled WASM codec unless you specifically need native performance. To drop back to G.711 entirely, run:npm run build:no-g722Provider-specific issues: Check validation recommendations for your provider
MCP Integration Issues
Server won't start:
# Check for port conflicts or config issues npm start --mcpClaude Code not connecting:
Verify MCP server configuration in Claude Code settings
Check that the working directory path is correct
Ensure the server is running and accessible
π What I Built
This is a personal project that includes:
π Fritz!Box Support: Actually tested and works
π€· Other SIP Configs: Vibe-coded based on documentation reading
π Connection Handling: Seems to work, has retry logic
β Config Validation: Catches obvious mistakes
π Network Testing: Basic connectivity checks
π― Provider Profiles: Research-based guesses about different systems
π MCP Server: Works with Claude Code (tested)
π TypeScript API: Clean interfaces for programmatic use
π Call Brief Processing: Uses o3-mini to generate instructions (works well)
π΅ Optional Call Recording: Stereo WAV files with left/right channels
π Transcript Capture: Real-time conversation logs
β οΈ Important Disclaimer
This project is vibe-coded! π
This means:
β Works on Fritz!Box - that's what I actually tested
π€· Other providers - I tried to make it more useful but can't promise anything
π€· Advanced features - seemed like good ideas based on research, but who knows
β οΈ YMMV - your setup is probably different than mine
β οΈ No warranties - use at your own risk
What This Means for You
Fritz Box users: Should work great! β
Other providers: The configuration profiles are educated guesses based on research - they might work, they might not
Enterprise users: I tried to add the features that seemed important, but I have no idea if they actually work correctly
Issues & PRs: I'll accept pull requests, but I can't promise to fix issues I can't reproduce or test
If You Want to Contribute
β Test it on your setup and let others know what works
β Share working configs if you get something else working
β Fix stuff that's broken and submit PRs
β Tell me if my assumptions were wrong about how providers work
The validation tools might help debug issues, but honestly, the real test is whether you can make actual calls.
π License
MIT License - see LICENSE for details.
Third-Party Components
G.722 Codec: Public domain and BSD licensed implementations
SIP Protocol: Based on sipjs-udp (MIT licensed)
Dependencies: Various open source licenses (see package.json)
π€ Contributing
Fork the repository
Create a feature branch
Add/update validation for new providers
Test with
npm run validate:detailedSubmit a pull request
π Support
Configuration Issues: Use
npm run validate:detailedfor diagnosticsProvider Support: Check compatibility matrix above
Build Problems: See troubleshooting section
Feature Requests: You can open GitHub issues, but they're unlikely to get attention anytime soon. Pull requests are much preferred!
Ready to get started? Copy an example config, run npm run validate:detailed, and start making AI-powered voice calls! π