FlexPBX is a complete, feature-rich PBX system built on Asterisk with a modern web interface, user migration system, documentation center, and free remote streaming music on hold.
Version: 1.4 Release Date: November 9, 2025 License: Open Source
- User Migration System: Move users between extensions and departments with automatic queue updates
- Complete Documentation Center: 14 comprehensive guides (5000+ lines)
- Remote Streaming MOH: Free TappedIn Radio Network integration
- Department Management: Enhanced with automatic queue management
- Migration History: Complete audit trail for all user moves
- Complete Database Schema: All 17 tables in single SQL file
Download pre-built installers:
Master Server (Full features, host your own):
wget https://flexpbx.devinecreations.net/downloads/FlexPBX-Master-Server-v1.4.tar.gz
tar -xzf FlexPBX-Master-Server-v1.4.tar.gz
cd FlexPBX-Master-Server-v1.4
sudo bash install.shClient Installation (Uses remote streaming):
wget https://flexpbx.devinecreations.net/downloads/FlexPBX-Client-v1.4.tar.gz
tar -xzf FlexPBX-Client-v1.4.tar.gz
cd FlexPBX-Client-v1.4
sudo bash install.shClone this repository and copy source files manually:
# Clone repository
git clone https://github.com/Raywonder/flexpbx.git
cd flexpbx
# Copy source files
cp -r src/admin/* /path/to/webroot/admin/
cp -r src/api/* /path/to/webroot/api/
cp -r src/user-portal/* /path/to/webroot/user-portal/
cp -r src/includes/* /path/to/webroot/includes/
# Import database
mysql -u username -p database_name < sql/complete-schema.sql
# Configure Asterisk
sudo cp config/musiconhold.conf /etc/asterisk/
sudo asterisk -rx "moh reload"See src/README.md for detailed installation instructions.
flexpbx/
βββ src/ Source code (275 files)
β βββ admin/ Admin panel (81 PHP files)
β βββ api/ API endpoints (123 PHP files)
β βββ user-portal/ User portal (38 PHP files)
β βββ includes/ Shared libraries (17 PHP files)
β βββ scripts/ Utility scripts (11 files)
β βββ cron/ Scheduled tasks (5 PHP files)
β βββ README.md Source installation guide
β
βββ docs/ Documentation (14 files, 5000+ lines)
β βββ AZURACAST_INTEGRATION.md
β βββ COMPLETE_SYSTEM_STATUS_NOV9_2025.md
β βββ DOCUMENTATION_INDEX.md
β βββ USER_MIGRATION_COMPLETE_GUIDE.md
β βββ ... (10 more)
β
βββ sql/ Database schemas
β βββ complete-schema.sql All 17 tables (360 lines)
β βββ migration_history_table.sql
β
βββ config/ Configuration files
β βββ musiconhold.conf MOH with remote streaming
β βββ asterisk-dialplan-defaults.conf
β βββ ivr-templates.json
β
βββ scripts/ Asterisk automation
β βββ auto-configure-feature-codes.php
β βββ configure-asterisk-dialplan.sh
β
βββ mcp-server/ AI Integration (MCP Server)
β βββ src/ MCP server source (20 tools)
β βββ docs/ MCP documentation
β βββ examples/ Usage examples
β βββ README.md MCP server guide
β
βββ README.md This file
- β User invitation system with email notifications
- β User migration (change extensions, move departments)
- β Extension auto-assignment (2000-2999 range)
- β Department management with automatic queue updates
- β Bulk user operations
- β Complete migration history audit trail
- β PJSIP SIP endpoints
- β Voicemail with email notifications
- β Call queues with statistics
- β Conference rooms (ConfBridge)
- β Call parking (700-702)
- β Ring groups
- β IVR builder with templates
- β Free remote streaming (TappedIn Radio Network)
- β Multiple radio stations (TappedIn, Raywonder, SoulFood, ChrisMix)
- β Local file support
- β Jellyfin integration (optional)
- β Remote MOH server connection (optional)
- β Documentation center with 14 comprehensive guides
- β Searchable documentation interface
- β Markdown to HTML viewer
- β Print and download capabilities
- β Help system with articles
- β Quick reference cards
- β Modern admin dashboard
- β Extension management
- β Department management
- β Queue management
- β Call logs and analytics
- β Mattermost chat integration
- β Notification system
- β Security settings
- β Role management
- β Mattermost chat embedding
- β TextNow SMS/calling
- β Google Voice OAuth 2.0
- β Twilio API
- β XMPP messaging framework
- β Mastodon OAuth authentication
- β 20 production-ready tools for AI assistants
- β Conference management (7 tools)
- β Extension monitoring (3 tools)
- β Dial plan rules (3 tools)
- β Call analytics (3 tools)
- β Claude Desktop integration
- β Full AMI integration
See mcp-server/README.md for MCP server details.
Core Tables:
extensions- User extensions with status trackingdepartments- Department organizationdepartment_queues- Department-queue relationships
Migration System:
migration_history- Complete audit trail
XMPP/Messaging:
xmpp_users,xmpp_messages,xmpp_roster
Notifications:
notifications,announcements
IVR & Queues:
ivr_templates,queue_members,queue_stats
Voicemail:
voicemail
PJSIP:
ps_endpoints,ps_auths,ps_aors
Support:
help_articles,log_files
Views:
extension_summary- Complete extension overview
See sql/complete-schema.sql for full schema.
FlexPBX v1.4 includes free remote streaming for all installations:
-
TappedIn Radio - Soundscapes, meditation music, podcasts
- URL: https://stream.tappedin.fm/radio/8000/tappedin-radio
- Status: β Free for all FlexPBX users
-
Raywonder Radio - Audio described content, educational
- URL: https://stream.raywonderis.me/radio/8000/raywonder-radio
- Status: β Free for all FlexPBX users
-
External Streams - SoulFood Radio, ChrisMix Radio
-
Optional - Jellyfin, Remote MOH server (ready to enable)
No music licensing needed! Works immediately out of the box.
See config/musiconhold.conf for configuration.
Minimum:
- Rocky Linux 8/9, AlmaLinux 8/9, CentOS 8+, or Ubuntu 20.04+
- 2GB RAM (master), 1GB RAM (client)
- 20GB disk (master), 10GB disk (client)
- PHP 8.0+ (8.1 or 8.2 recommended)
- MariaDB 10.5+ or MySQL 8.0+
- Asterisk 18.12.1+
- Apache 2.4+ with mod_rewrite
Recommended:
- 4GB RAM
- 40GB disk
- PHP 8.2
- MariaDB 10.11
- Internet connection (for remote streaming MOH)
After installation:
-
Access Admin Portal:
https://your-server/admin/ -
Default Admin:
- Create admin account during installation
- Or set role to 'admin' in database
-
Configure System:
- System Settings β Configure PBX
- Department Management β Create departments
- User Management β Invite users
- MOH Settings β Test remote streaming
-
Test Features:
- Dial *43 for echo test
- Dial 9991 to test MOH
- Dial 8000 for conference room
Move users between extensions or departments:
-
Go to Admin Dashboard β User & Department Management β User Migration
-
Choose migration type:
- Complete migration (extension + department)
- Quick extension change
- Department transfer only
- Bulk migration
-
Preview changes before executing
-
System automatically updates:
- PJSIP configuration
- Queue memberships
- Voicemail location
- User portal display
See docs/USER_MIGRATION_COMPLETE_GUIDE.md for detailed guide.
All documentation is included in the docs/ directory:
-
System Status & Implementation:
- COMPLETE_SYSTEM_STATUS_NOV9_2025.md
- FLEXPBX_COMPLETE_FEATURE_INTEGRATION_NOV9_2025.md
- SESSION_COMPLETE_NOV9_2025.md
- FINAL_SESSION_SUMMARY_NOV9_2025.md
-
Setup & Configuration:
- AZURACAST_INTEGRATION.md
- INSTALLER_DIALPLAN_INTEGRATION.md
- FREEPBX_COMPATIBILITY_GUIDE.md
-
User Management:
- USER_MIGRATION_COMPLETE_GUIDE.md (500+ lines)
- USER_MIGRATION_SUMMARY_NOV9_2025.md
- USER_INVITATION_QUICK_START.md
-
Quick Reference:
- FLEXPBX_QUICK_REFERENCE_CARD.md
- DOCUMENTATION_INDEX.md
- DOCUMENTATION_LINKING_COMPLETE_NOV9_2025.md
- FLEXPBX_XMPP_INTEGRATION.md
Total: 5000+ lines of comprehensive documentation
Via Admin Panel:
Admin Dashboard β Documentation Center
Via Files:
See docs/ directory in repository or installation
FlexPBX includes a Model Context Protocol (MCP) server for AI integration.
20 Production Tools:
- AMI Core (4 tools): status, channels, originate, hangup
- Conference Management (7 tools): list, participants, kick, mute, lock, etc.
- Extension Management (3 tools): list, status, registration
- Dial Plan (3 tools): rules, feature codes, validation
- Call Analytics (3 tools): CDR, statistics, summaries
# Install MCP server
cd mcp-server
npm install
# Configure
cp .env.example .env
nano .env # Add your AMI credentials
# Start server
npm startAdd to Claude Desktop config:
{
"mcpServers": {
"flexpbx-voip": {
"command": "node",
"args": ["/path/to/flexpbx/mcp-server/src/index.js"],
"env": {
"AMI_HOST": "127.0.0.1",
"AMI_PORT": "5038",
"AMI_USERNAME": "your_username",
"AMI_SECRET": "your_secret"
}
}
}
}See mcp-server/README.md for complete guide.
- PHP Files: 259
- JavaScript Files: 10+
- CSS Files: 5+
- SQL Files: 2
- Documentation: 14 files
- Total Lines: 50,000+ (source) + 5,000+ (docs)
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
Admin Panel (src/admin/):
- MVC-like structure
- Session-based authentication
- Role-based access control
API (src/api/):
- RESTful endpoints
- JSON responses
- Database abstraction
User Portal (src/user-portal/):
- User-facing features
- Extension management
- Profile settings
- β Use strong database passwords
- β Enable HTTPS/SSL
- β Configure firewall (ports 5060, 5061, 10000-20000)
- β Restrict AMI access
- β Enable fail2ban
- β Regular security updates
- β Change default admin credentials
Admin Account:
- Created during installation
- Set strong password
- Enable 2FA (if available)
Database:
- Configure unique credentials
- Restrict localhost-only access
- Use strong passwords
- Website: https://flexpbx.devinecreations.net
- Downloads: https://flexpbx.devinecreations.net/downloads/
- GitHub: https://github.com/Raywonder/flexpbx
- Documentation: See
docs/directory
- Email: support@devine-creations.com
- Phone: (302) 313-9555
- Issues: GitHub Issues
- Source Files: 275
- Lines of Code: 50,000+
- Documentation: 5,000+ lines (14 files)
- Database Tables: 17
- API Endpoints: 123
- Admin Pages: 81
- User Portal Pages: 38
- MCP Tools: 20
- User Migration System: β
- Documentation Center: β
- Remote Streaming MOH: β (Free)
- Department Management: β
- XMPP Messaging: β
- Mattermost Integration: β
- AI Integration (MCP): β
FlexPBX is open source software. See LICENSE file for details.
Developed by: Devine Creations Website: https://devine-creations.com | https://devinecreations.net Version: 1.4 Release Date: November 9, 2025
Built with:
- Asterisk PBX
- PHP 8.x
- MariaDB
- JavaScript/jQuery
- Model Context Protocol (MCP)
Free Streaming Provided by:
- TappedIn Radio Network
- Raywonder Radio
- Download Installers
- Installation Guide
- User Migration Guide
- Documentation Index
- MCP Server Guide
- Database Schema
- Configuration Files
β Star this repository if you find FlexPBX useful!
π€ Contributions welcome!