MaKKrO
February 18, 2007, 12:22pm
1
Hi All,
THere is something i don’t really understand !!!
I am using AGI/PHP scipt for a while now, and i have never faced this problem !
Executing NoOp(“Zap/1-1”, “Channel=Zap/1-1”) in new stack
– Executing AGI(“Zap/1-1”, “ivr.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/ivr.agi
Failed to execute ‘/var/lib/asterisk/agi-bin/ivr.agi’: No such file or directory
– AGI Script ivr.agi completed, returning 0
– Executing WaitExten(“Zap/1-1”, “20”) in new stack
My file is there, the permissions are ok !
If i run a chmod -x on the file, i get :
Executing Answer(“Zap/1-1”, “”) in new stack
– Executing Set(“Zap/1-1”, “TIMEOUT(digit)=2”) in new stack
– Digit timeout set to 2
– Executing NoOp(“Zap/1-1”, “Channel=Zap/1-1”) in new stack
– Executing AGI(“Zap/1-1”, “ivr.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/ivr.agi
Failed to execute ‘/var/lib/asterisk/agi-bin/ivr.agi’: Permission denied
– AGI Script ivr.agi completed, returning 0
– Executing WaitExten(“Zap/1-1”, “20”) in new stack
Any help ?
I’m lost !
thanks
valley
February 19, 2007, 8:07pm
2
Knocking on the obvious: Is Asterisk running as root? If not, does it have sufficient privilege throughout the path? One simple test could be using System() call to ls the file.
MaKKrO
February 20, 2007, 6:12am
3
I found the problem…
the /usr/bin/php file was not here…
It means the " no such file or directory " is not for the AGI script itself, but for the first line of the file !
I compiled php with cli option and then it’s OK now!
Thanks
Didn’t even think about PHP not being installed. This was a big help. Thank you