Thanks for the response. I turned on logging and placed a call to my PSTN trunk. Here's what came up in the CLI:
Code:
-- Executing [083762456@a2billing:1] Answer("SIP/100-08d96e98", "") in new stack
-- Executing [083762456@a2billing:2] Wait("SIP/100-08d96e98", "1") in new stack
-- Executing [083762456@a2billing:3] DeadAGI("SIP/100-08d96e98", "a2billing.php|1") in new stack
[Sep 16 11:01:59] WARNING[3906]: res_agi.c:3067 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
[Sep 16 11:01:59] WARNING[3906]: res_agi.c:630 launch_script: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
-- Executing [083762456@a2billing:4] Hangup("SIP/100-08d96e98", "") in new stack
== Spawn extension (a2billing, 083762456, 4) exited non-zero on 'SIP/100-08d96e98'
The file was NOT THERE. So, I just copied the file to /var/lib/asterisk/agi-bin/ and restarted asterisk. I expected great things to happen. However, I got the same exact error. It can't find the file. I checked the permissions and they look good and even did a chmod 777 on the file. Restarted. Same thing. Please help!