[asterisk-users] AGI script

Steve Edwards asterisk.org at sedwards.com
Fri Feb 20 14:15:25 CST 2009


On Fri, 20 Feb 2009, michel freiha wrote:

> I'm facing the below problem:
>  ==  dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No
> such file or directory
>
> What could be the issue here?

These commands may point you in the right direction:

1) ps -aef | grep asterisk | grep -v grep

2) ls -l /var/lib/asterisk/agi-bin/dial.pl

3) head -1 /var/lib/asterisk/agi-bin/dial.pl

Also, note that you copied the "example" dialplan snippet verbatim. The 
script as provided does not look at the "passed extension," it looks at 
the AGI environment variable.

A suggestion -- you should not be logging in as root. You should be using 
the "sudo" command.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list