On Wed, Feb 20, 2013 at 9:23 AM, Mahendra Dobariya <
[email protected]> wrote:
> File: /etc/asterisk/extensions.conf
> [call]
> exten => call,1,Answer
> exten => call,n,Playback(hello-world)
> exten => call,n,Hangup()
>
> exten => h,1,Set(NEXT=$[${NEXT}+1])
> exten => h,n,AGI(generateCall.php,${NEXT})
>
Try
exten =>
h,n,AGI(/usr/bin/php,/usr/share/asterisk/agi-bin/generateCall.php,${NEXT})
> exten => h,n,Hangup()
>
> <Dongle/dongle0-010000000d>AGI Rx << Could not open input file: 1
>
>
This is indicating that, for whatever reason, php is seeing "1" as argv[1],
not the name of your script file. I reproduced this by making a php shebang
that looks like
#!/usr/bin/php 1
Not sure why, though. The above should be a workaround for now.
--
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users