Integrating VitalPBX with Agent Voice Response (AVR) allows you to route calls directly to the AI voicebot as if it were a standard extension.
This setup is very similar to FreePBX but uses VitalPBX’s custom dialplan files.
VitalPBX is an Asterisk-based PBX distribution that provides a web interface to manage extensions, trunks, and call routing.
Although most configurations are done through the web UI, advanced integrations like AVR require adding custom Asterisk dialplan logic.
Asterisk’s dialplan is the logic that defines how calls are processed.
By creating a small dialplan snippet, we can forward calls from VitalPBX into the AudioSocket channel used by AVR.
AVRAgent5001 (or any free number you want to use for AVR)This tells VitalPBX that when someone dials 5001, it should look into the custom dialplan we’re going to create.

On your VitalPBX server, you’ll need to manually add an Asterisk configuration file.
Connect via SSH to your VitalPBX server.
Create a new file at:
/etc/asterisk/vitalpbx/extensions__90-avr.conf
Add the following configuration (replace 127.0.0.1 with your avr-core IP address):
[cos-all-custom](+)
exten => 5001,1,Answer()
exten => 5001,n,Ringing()
exten => 5001,n,Set(UUID=${SHELL(uuidgen | tr -d '\n')})
exten => 5001,n,AudioSocket(${UUID},127.0.0.1:5001)
exten => 5001,n,Hangup()
Explanation
After saving the file, apply the changes by reloading Asterisk:
asterisk -rx "dialplan reload"
If you’re not familiar with Asterisk CLI, you can enter it by running:
asterisk -rvvv
From there, you can debug calls in real-time as they are processed.
You have now successfully integrated VitalPBX with Agent Voice Response!
Your PBX can now forward calls directly into AVR for AI-powered interactions.