<div dir="ltr">On Wed, Feb 20, 2013 at 9:23 AM, Mahendra Dobariya <span dir="ltr"><<a href="mailto:mahendra_mahendra@hotmail.com" target="_blank">mahendra_mahendra@hotmail.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div><div> File: /etc/asterisk/extensions.conf<br></div><div>[call]</div><div>exten => call,1,Answer</div><div>exten => call,n,Playback(hello-world)</div><div>exten => call,n,Hangup()</div><div>
<br></div><div>exten => h,1,Set(NEXT=$[${NEXT}+1])</div><div>exten => h,n,AGI(generateCall.php,${NEXT})</div><div></div></div></div></div></blockquote><div><br></div><div style>Try</div><div style>exten => h,n,AGI(/usr/bin/php,/usr/share/asterisk/agi-bin/generateCall.php,${NEXT})</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div><div>exten => h,n,Hangup()</div><div></div></div></div></div></blockquote><div>
<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div><div><Dongle/dongle0-010000000d>AGI Rx << Could not open input file: 1<br>
</div><div><br></div></div></div></div></blockquote><div><br></div><div style>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</div>
<div style>#!/usr/bin/php 1</div><div style><br></div><div style>Not sure why, though. The above should be a workaround for now. </div></div><div><br></div>-- <br>-Chris Harrington<br><div>ACSDi Office: 763.559.5800</div>
<div><div>Mobile Phone: 612.326.4248</div></div><div><br></div>
</div></div>