<div dir="ltr"><font color="#333399"><font><font face="tahoma,sans-serif"><b>Hi,<br><font>sorry to delay.</font></b><i><font><br><br><font>here is my answers.<br><font> 1) What does the Asterisk console log look like when you try to execute the AGI?<br>
</font></font></font></i><font><font><font><b>first let me know how can I execute the AGI?</b></font></font></font><i><font><font><font><br><br> 2) If you enter '/usr/bin/php -v', what do you get? I get:<br></font></font></font></i><b><font><font><font>$ "php -v" give me:<br>
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)<br>Copyright (c) 1997-2006 The PHP Group<br>Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies</font></font></font></b><i><font><font><font><br><br></font></font></font></i><b><font><font><font>but not in path "/usr/bin/php -v"</font></font></font></b><i><font><font><font><br>
<br>3) If you enter the following command in a shell, what do you get?<br><br> sudo -u asterisk /var/lib/asterisk/agi-bin/testAGI.php<br><br></font></font></font></i><b><font><font><font>Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect.</font></font></font></b><i><font><font><font><br>
<br><br></font><br></font></font></i></font></font></font><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 8:33 PM, Steve Edwards <span dir="ltr"><<a href="mailto:asterisk.org@sedwards.com" target="_blank">asterisk.org@sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, 16 Jan 2013, Muhammad wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
**When you say 'doesn't work' do you mean 'doesn't do what I want' or 'does not execute?'<br>
<br>
I mean I do all steps in Mr. Nir presentation documents and not works.<br>
</blockquote>
<br></div>
Your PHP script executes correctly on my dev box, but I would change the log file path to something absolute like '/tmp/agi_log.log' so we know where it is.<br>
<br>
1) What does the Asterisk console log look like when you try to execute the AGI?<br>
<br>
2) If you enter '/usr/bin/php -v', what do you get? I get:<br>
<br>
PHP 5.1.6 (cli) (built: Feb 22 2012 19:34:21)<br>
Copyright (c) 1997-2006 The PHP Group<br>
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies<br>
<br>
3) If you enter the following command in a shell, what do you get?<br>
<br>
sudo -u asterisk /var/lib/asterisk/agi-bin/<u></u>testAGI.php </dev/null<br>
<br>
(If you run Asterisk as another user, use that user name in the command above.)<br>
<br>
I get:<br>
<br>
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/agi-bin/<u></u>testAGI.php on line 31<br>
STREAM FILE demo-congrats #<br>
SAY NUMBER 123456 #<br>
<br>
The 'notice' is because we passed an empty AGI environment.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Thanks in advance,<br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: <a href="https://2.177.142.31/_AMI/tidy.php?exten=147&number=%2B17604683867" class="telified" title="Use as phone number" style="color:#00001f;background-color:#ffffdf">+1-760-468-3867</a> PST<br>
Newline Fax: <a href="https://2.177.142.31/_AMI/tidy.php?exten=147&number=%2B17607313000" class="telified" title="Use as phone number" style="color:#00001f;background-color:#ffffdf">+1-760-731-3000</a><br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>