dongjb741280/ai-call-center
开源呼叫中心系统,基于 FreeSWITCH、Spring Boot 和 Vue 3,支持人工呼入呼出、智能外呼任务、ACD 技能组路由、IVR、WebRTC 坐席与录音管理。Open-source call center / contact center.
AI Call Center System
An enterprise-grade AI call center system built on FreeSwitch and Spring Boot, providing multi-tenant, multi-skill-group, and intelligent routing — a complete set of call center capabilities.
中文 | English

🌟 If this project helps you, please give it a ⭐ Star! 🙏
Official site: https://dongjb741280.github.io/ai-call-center/
Overview
This is an AI call center solution built on a microservices architecture, integrating FreeSwitch as the call engine and providing complete call management, agent management, intelligent routing, monitoring and statistics. It supports multi-company and multi-skill-group management, with enterprise-grade high-concurrency and high-availability characteristics.
This project is primarily intended for large-scale human inbound and outbound calling scenarios, or as the foundation for AI-powered unattended calling.
For a pure AI call center (unattended-first), please refer to:
Screenshots
| Dashboard | Agent Management |
|---|---|
![]() | ![]() |
| IVR Management | Agent Monitor |
|---|---|
![]() | ![]() |
Demo

Technical Architecture
flowchart LR
AG[Agent Console<br/>Vue3 + JsSIP Softphone] -- WebSocket --> CALL
CP[Caller / Customer] -- SIP/RTP --> FS[FreeSWITCH<br/>Media & Signaling]
FS <-- "ESL events / commands" --> CALL[voxai-call<br/>Call Control :7200]
CALL -- HTTP --> IVR[voxai-ivr<br/>IVR Engine :7300]
IVR -- callback --> CALL
ADMIN[voxai-admin<br/>Admin API :7100] -- config --> CALL
CALL --> R[(Redis)]
CALL --> DB[(MySQL)]
CALL --> M[(MinIO)]
ADMIN --> DB
ADMIN --> N[Nacos]
CALL --> N
Project Structure
ai-call-center/
├── voxai-common/ # Core business module (data layer)
├── voxai-admin/ # Admin API service (port 7100)
├── voxai-call/ # FreeSwitch integration service (port 7200)
├── voxai-ivr/ # IVR engine service (port 7300)
├── voxai-dialer/ # External outbound scheduler (HTTP client, disabled by default)
├── freeswitch/ # FreeSwitch configuration and Docker image
├── portal/ # Product portal (VoxHub)
├── docs/ # Business docs (scope/flows/data model/engine interfaces)
├── .github/workflows/ # GitHub Actions (portal CI/CD)
├── .gitlab-ci.yml # GitLab CI/CD pipeline
└── Dockerfile # Multi-stage Docker build
Tech Stack
- Backend framework: Spring Boot 2.3.12
- Microservices: Spring Cloud + Nacos
- Database: MySQL/PostgreSQL/Oracle/SQL Server (multi-database support)
- Cache: Redis
- Message queue: RabbitMQ (optional Kafka)
- File storage: MinIO
- Call engine: FreeSwitch
- Build tool: Maven + Jib (build images without a Docker Daemon)
- Image registry: Harbor
- Containerization: Docker
- CI/CD: GitLab CI + Watchtower auto-deploy
Core Modules
voxai-common (Core Business Module)
- Entities: company, agent, skill group, call records and other business entities
- Data access: MyBatis mappers
- Utilities: encryption, ID generation and other common utilities
voxai-admin (Admin API Service)
- Administration: agent management, skill group management, company configuration
- Auth: Spring Security + JWT
- Scheduled tasks: Quartz scheduler
- Statistics: call statistics, agent state statistics
- File management: MinIO integration
voxai-call (FreeSwitch Integration Service)
- Call control: inbound/outbound, transfer, hold, mute, etc.
- Intelligent routing: ACD (Automatic Call Distribution) algorithms
- Agent state: real-time state management and monitoring
- WebSocket: real-time communication
- TCP service: agent state subscription
- Event handling: FreeSwitch event listening and processing
voxai-ivr (IVR Engine Service)
- Flow engine: parses
cc_ivr_workflow.contentinto a node graph, executes by play/input/transfer - Interaction: playback and digit collection via FreeSwitch
playback/play_and_get_digits - Handoff: calls back
voxai-callon completion to route to skill group/agent/VDN/hangup
voxai-dialer (Outbound Task Engine)
Independent scheduler with cruise/predictive pacing, command acknowledgements, lease recovery and CDR result submission. See deployment and recovery before enabling.
Core Features
1. Call Management
- Inbound handling: automatic routing to a skill group
- Outbound: agent-initiated calls
- Call transfer: agent-to-agent transfer, skill-group transfer
- Call hold: hold / unhold
- Mute control: agent mute / unmute
2. Inbound Routing (VDN / IVR)
- VDN identification: service number matches
cc_vdn_phone→cc_vdn_code, selects the active route bycc_vdn_schedule(weekday/date/time range) - Route types (
cc_vdn_config.route_type): skill group / playback / IVR / agent / outbound - Digit navigation: collect digits with
play_and_get_digitsafter playback, match againstcc_vdn_dtmfto route to skill group/IVR/route code/agent extension/hangup - IVR engine:
voxai-ivrparses thecc_ivr_workflowdefinition, executes play/input/transfer, then hands back
3. Intelligent Routing (ACD)
- Multiple assignment strategies:
- Least answered
- Least talk time
- Longest ready
- Random
- Round-robin
- Custom
4. Skill Group Management
- Queuing strategies: priority queue, VIP queue
- Overflow handling: queue timeout, skill-group overflow
- Memory agent: match the customer's historical agent
5. Agent Management
- State management: ready, busy, talking, offline, etc.
- Multiple login methods: SIP, WebRTC, phone
- Access control: role-based permission management
6. Monitoring & Statistics
- Real-time monitoring: agent state, call state
- Statistics: call volume, answer rate, average talk time
- Report export: Excel report export
Getting Started
Requirements
- JDK 1.8+
- Maven 3.6+
- MySQL 5.7+ / PostgreSQL 10+ / Oracle 11g+ / SQL Server 2016+
- Redis 5.0+
- FreeSwitch 1.10+
- Docker & Docker Compose
Database Setup
- Create the database
- Initialize the database: table scripts and migration SQL are under
docs/sql/(voxai.sqlfull database dump,migration_*.sqlincremental migrations) - Update the database connection settings in the config file
Configuration Files
Edit application-dev.properties:
# Database
spring.datasource.url=jdbc:mysql://localhost:3306/voxai
spring.datasource.username=root
spring.datasource.password=your_password
# Redis
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.password=your_redis_password
# MinIO
voxai.minio.endpoint=http://localhost:9000
voxai.minio.access.key=admin
voxai.minio.secret.key=your_secret_key
Build & Run
1. Compile the project
# Build all modules (skip tests)
mvn clean install -DskipTests
# Build a single module
mvn clean install -pl voxai-admin -DskipTests
2. Run locally
# voxai-admin (admin backend, port 7100)
java -jar voxai-admin/target/voxai-admin-1.0.0.jar
# voxai-call (call service, port 7200)
java -jar voxai-call/target/voxai-call-1.0.0.jar
# voxai-ivr (IVR engine, port 7300)
java -jar voxai-ivr/target/voxai-ivr-1.0.0.jar
3. Build images with Jib (no Docker Daemon required)
# Build and push to Harbor
mvn compile jib:build -pl voxai-admin,voxai-call \
-DsendCredentialsOverHttp=true \
-Ddocker.repostory=localhost:8444 \
-Djib.to.tags=latest
# Or build to the local Docker Daemon
mvn compile jib:dockerBuild -pl voxai-admin
4. Run with Docker
# Pull from Harbor and start
docker pull localhost:8444/voxai/voxai-admin:latest
docker run -d --name voxai-admin --network host \
localhost:8444/voxai/voxai-admin:latest
API Docs (Swagger/OpenAPI)
- voxai-admin:
http://localhost:7100/voxai-admin/swagger-ui/index.html - voxai-call:
http://localhost:7200/voxai-call/swagger-ui/index.html
Deployment Architecture
Microservice Deployment
- voxai-admin: admin backend service (port 7100)
- voxai-call: call control service (port 7200)
- voxai-ivr: IVR engine service (port 7300)
- freeswitch: call engine (port 5060)
Data Storage
- MySQL: business data storage
- Redis: cache and session storage
- MinIO: recording files and media storage
CI/CD Pipeline
Compile → Unit Tests → SonarQube → Package → Jib Build (Harbor) → Nexus Publish → 1Panel API Deploy
↓
Watchtower (k8s-work-4)
Dual safeguard, auto pull & restart
- CI (GitLab): build, test, code scan, Jib pushes images to Harbor
- Harbor: local image registry (
localhost:8444) - Dual CD safeguard:
- Option A (1Panel API): CI actively triggers
images/pull+containers/upgrade - Option B (Watchtower): runs in the background on k8s-work-4, periodically checks and auto-deploys
- Both coexist without conflict; either one succeeding is enough
- Option A (1Panel API): CI actively triggers
Watchtower Deployment (k8s-work-4)
docker run -d \
--name watchtower --restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /root/.docker/config.json:/config.json \
-e DOCKER_CONFIG=/ \
containrrr/watchtower \
--interval 30 --cleanup \
voxai-admin voxai-call
Depends on the Harbor login credentials in
/root/.docker/config.json
GitLab CI Variables
| Variable | Description |
|---|---|
HARBOR_REGISTRY | Harbor image registry address |
HARBOR_REGISTRY_USER | Harbor username |
HARBOR_REGISTRY_PASS | Harbor password |
ONEPANEL_URL | 1Panel panel address (Option A) |
ONEPANEL_API_KEY | 1Panel API Key (Option A) |
SONAR_HOST_URL | SonarQube server address |
SONAR_TOKEN | SonarQube Token |
NEXUS_URL / NEXUS_USER / NEXUS_PASSWORD | Nexus repository credentials |
Configuration
Multi-environment Support
- Development (dev)
- Production (prod)
- Nacos config center integration
Multi-database Support
- MySQL (primary)
- PostgreSQL
- Oracle
- SQL Server
Security Features
- JWT token authentication
- Encrypted password storage
- API permission control
API Documentation
Admin context path
/voxai-admin(port 7100), call context path/voxai-call(port 7200).
Main Endpoints
Login & Health
POST /voxai-admin/index/login- admin loginGET /voxai-admin/index/logout- admin logoutGET /voxai-admin/index/health- admin health checkGET /voxai-call/index/health- call health check
Agent & Skill Group (voxai-admin /config)
GET /voxai-admin/config/agent- agent listPOST /voxai-admin/config/agent- add agentGET /voxai-admin/config/group- skill group listPOST /voxai-admin/config/group- add skill groupGET /voxai-admin/config/group/agent/{id}- agents in a skill group
Call Control (voxai-call /cti)
POST /voxai-call/cti/call/makeCall- make a callPOST /voxai-call/cti/call/hangup- hang upPOST /voxai-call/cti/call/hold/cancelHold- hold / unholdPOST /voxai-call/cti/call/readyMute/cancelMute- mute / unmutePOST /voxai-call/cti/agent/ready/notReady- set ready / not readyPOST /voxai-call/cti/agent/logout- agent logoutGET /voxai-call/cti/admin/call- call list
Monitoring & Operations
Health Checks
GET /voxai-admin/index/health- voxai-admin health check (port 7100)GET /voxai-call/index/health- voxai-call health check (port 7200)
Logging
- Logback logging configuration
- ELK log collection support
- Structured log output
Performance Monitoring
- Prometheus metrics collection
- JVM performance monitoring
- Database connection pool monitoring
Development Guide
Code Structure
src/main/java/
├── com.voxai.api/ # API service
│ ├── web/ # Controller layer
│ ├── service/ # Service layer
│ └── configration/ # Configuration classes
├── com.voxai.core/ # Core module
│ ├── entity/ # Entities
│ ├── mapper/ # Data access layer
│ └── enums/ # Enums
└── com.voxai/ # FreeSwitch integration
├── cc/ # Call control
├── fs/ # FreeSwitch event handling
└── websocket/ # WebSocket communication
Development Conventions
- Follow the Alibaba Java Development Manual
- Use a unified exception handling mechanism
- Support multi-tenant data isolation
- Async processing for better performance
FAQ
Q: How do I configure FreeSwitch?
A: Refer to the configuration files under freeswitch/, which support both CentOS and Debian.
Q: How do I add a new assignment strategy?
A: Implement a new assignment algorithm under voxai-call/src/main/java/com/voxai/cc/acd/assign/.
Q: How do I integrate with third-party systems?
A: Integrate via WebHook callbacks or message queues, supporting HTTP and RabbitMQ.
Q: How do I extend agent functionality?
A: Add new entities and interfaces in the voxai-common module, and implement the concrete business logic in voxai-admin.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contact
- Author: dongjianbin
- Email: dongjb741280@gmail.com
- Repository: GitHub Repository
Changelog
v1.0.1 (2026-07-31)
- Integrated Jib image builds, removing the Docker Daemon dependency
- Added GitLab CI + Harbor + Watchtower auto-deploy pipeline
- Unified Harbor environment variable naming (
HARBOR_REGISTRYprefix)
v1.0.0 (2024-01-01)
- Initial release
- Basic call center features
- FreeSwitch call engine integration
- Multi-tenant management
- Complete API endpoints
Note: This project is for learning and research only. For commercial use, please ensure compliance with relevant laws and regulations.
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
Self-hosted API-first AI call center: AI talks, code controls the call. AI agents answer every call; humans take over without dropping it. Runs on FreeSWITCH with your SIP trunk and realtime model (OpenAI, Grok, Qwen, Doubao, or any compatible gateway).
Kamailio - The Open Source SIP Server for large VoIP and real-time communication platforms, focusing on flexibility, security and scalability
Build AI phone agents on your own computer and test every change with an AI caller. Open source, runs free with no API keys, cents per call with your own keys. Imports Dialogflow CX.
Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
An agentic skills framework & software development methodology that works.



