I am trying to do a simple agi connection to db with the guidance from <a href="http://www.voip-info.org/wiki/view/Asterisk+AGI+php">http://www.voip-info.org/wiki/view/Asterisk+AGI+php</a> <br><br>Item 13 with ani.agi file, db and
extensions.conf<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><h2>13. another sample, ANI
</h2><div class="bitbox">
<br><b>Scenario</b> - did callers call the Asterisks box and land on
the context did, Asterisks answers the call and then execute the script
ani.agi. This script will connect to mysql and see whether originators
phone number(caller ID) is already in the database. If it exists, then
agi.script will pass the control back to dial plan. Dial plan now will
progress the call. If the caller ID does not exists, ani.agi will pass
the control to the dial plan as un authenticated call.
<br></div>
<br>
<br><span style="text-decoration: underline;">ani.agi</span>
<br><span style="font-family: monospace;">#!/usr/local/bin/php -q
</span><br><span style="font-family: monospace;"><?php
</span><br><span style="font-family: monospace;">ob_implicit_flush(true);
</span><br><span style="font-family: monospace;">set_time_limit(6);
</span><br><span style="font-family: monospace;">$in = fopen("php://stdin","r");
</span><br>
<br><span style="font-family: monospace;">$stdlog = fopen("/var/log/asterisk/my_agi.log", "w");
</span></blockquote><div><br><br>i have put the value of the callerid i called frm assume 2222 then when i do debug i got the callerid in agi but seem that ani.agi is not working cause is asking for password. From my understanding, if the callerid is in the db then it will not ask to authenticate right? anything missing here?
<br><br>THanks in advance.<br></div><br>