On September 11, 2026, we built a phone line for the shop. The goal was to integrate a real-time communication tool with our existing CRM system. We tackled the entire setup in one day.
We deployed an Asterisk PBX using Docker.
IVR routes calls to sales, support, general, and voicemail.
Calls are logged in a local SQLite DB and the CRM.
Host networking on SIP 5060 and LAN-only port 8095.
Building the PBX.
We started by setting up the Asterisk PBX in Docker. This allowed us to manage voice calls efficiently.
Using host networking on SIP port 5060, we ensured that the phone line was accessible.
Integrating with CRM.
Next, we connected EspoCRM with MariaDB, hosting it on a LAN-only port. This kept our data secure while still functional.
The Node bridge we created watches the voicemail spool and writes call records directly into both the SQLite database and the CRM.
Creating the IVR.
We implemented an IVR greeting to route calls effectively. Options include 1 for sales, 2 for support, 3 for general inquiries, and 0 for voicemail.
This structure allows for efficient communication and ensures that customer inquiries are directed to the right department.
Finalizing the setup.
After configuring everything, we tested the system to ensure all components worked together.
By the end of the day, we had a fully functional phone line with CRM integration.