<div dir="ltr">On Wed, Feb 20, 2013 at 9:23 AM, Mahendra Dobariya <span dir="ltr">&lt;<a href="mailto:mahendra_mahendra@hotmail.com" target="_blank">mahendra_mahendra@hotmail.com</a>&gt;</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 =&gt; call,1,Answer</div><div>exten =&gt; call,n,Playback(hello-world)</div><div>exten =&gt; call,n,Hangup()</div><div>
<br></div><div>exten =&gt; h,1,Set(NEXT=$[${NEXT}+1])</div><div>exten =&gt; h,n,AGI(generateCall.php,${NEXT})</div><div></div></div></div></div></blockquote><div><br></div><div style>Try</div><div style>exten =&gt; 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 =&gt; 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>&lt;Dongle/dongle0-010000000d&gt;AGI Rx &lt;&lt; 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 &quot;1&quot; 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>