🔍 Problem Description
While configuring or running VICIdial 11, you may encounter the following error in your Asterisk logs:
== Using SIP RTP CoS mark 5
> 0x7fa45402fae0 -- Strict RTP learning after remote address set to: 172.16.10.222:17358
-- Executing [5101@trunkinbound:1] AGI("SIP/JIO-00000001", "agi-DID_route.agi") in new stack
[Oct 15 12:10:38] WARNING[8597][C-00000002]: res_agi.c:2218 launch_script: Failed to execute '/usr/share/asterisk/agi-bin/agi-DID_route.agi': File does not exist.
-- Executing [5101@trunkinbound:2] Hangup("SIP/JIO-00000001", "") in new stack
== Spawn extension (trunkinbound, 5101, 2) exited non-zero on 'SIP/JIO-00000001'
[Oct 15 12:10:38] WARNING[8597][C-00000002]: func_hangupcause.c:138 hangupcause_read: Unable to find information for channel
-- Executing [h@trunkinbound:1] AGI("SIP/JIO-00000001", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack
-- <SIP/JIO-00000001>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------) completed, returning 0
⚠️ Cause of the Error
This error occurs because the AGI directory (/usr/share/asterisk/agi-bin/) or the AGI scripts (like agi-DID_route.agi
) are missing.
These AGI files are essential for inbound call routing in VICIdial.
đź§© Solution Steps
Follow these commands to fix the issue:
# Create the AGI directory if it doesn’t exist
mkdir /usr/share/asterisk/agi-bin
# Go to the VICIdial AGI source directory
cd /usr/src/astguiclient/trunk/agi/
# Copy all AGI files to the correct directory
cp *.* /usr/share/asterisk/agi-bin/
# Set proper permissions
cd /usr/share/asterisk/agi-bin/
chmod 755 *.*
After performing these steps, restart Asterisk:
service asterisk restart
Now, VICIdial should be able to execute agi-DID_route.agi
without errors, and your inbound calls will route correctly.
âś… Final Check
You can verify that the files are properly placed by running:
ls -l /usr/share/asterisk/agi-bin/
You should see multiple .agi
scripts like:
agi-DID_route.agi
agi-VDAD_ALL_outbound.agi
agi-NVA_recording.agi
...
If these scripts are present and executable, the problem is resolved.
📌 Conclusion
This error is common after restoring or freshly installing VICIdial 11, especially if the /usr/share/asterisk/agi-bin/
directory is missing. Copying the AGI scripts and setting the correct permissions fixes the issue quickly.