Wake up call PHP script

sleepymatt
Joined: Wed 12 of May, 2010

Re: Wake up call PHP script

Posted:Mon 21 of Jun, 2010 (02:55 UTC)
The script does define a path to the php location: #!/usr/bin/php -q

But that path does not exist. /usr/bin exists but /php does not. Do i need to install a php interpreter or is it possibly located elsewhere?

Thanks!
Matt
sleepymatt
Joined: Wed 12 of May, 2010

Wake up call PHP script

Posted:Wed 09 of Jun, 2010 (23:12 UTC)
Hello,

I'm running asterisk 1.6 on a router. I have followed the instructions to use the following script:

http://voip-info.capatres.com/wiki/view/Asterisk+tips+Wake-Up+Call+PHP.html

When I call 77 I get the following error message in the CLI:
    -- Executing [77@devices:1] AGI("SIP/200-0000000c", "wakeup.php") in new stack
    -- Launched AGI Script /opt/var/lib/asterisk/agi-bin/wakeup.php
 wakeup.php: Failed to execute '/opt/var/lib/asterisk/agi-bin/wakeup.php': No such file or directory
    -- Executing [77@devices:2] Hangup("SIP/200-0000000c", "") in new stack
  == Spawn extension (devices, 77, 2) exited non-zero on 'SIP/200-0000000c'

wakeup.php is in /opt/var/lib/asterisk/agi-bin/ and it has full r/w/x privileges. I don't get it. What am I doing wrong??

Thanks!