Hi there, <br><br>to give you an idea of what Jon is saying...<br><br>in your extensions.conf you can probably try this..<br><br>exten => 1,1,BackGround(/var/lib/asterisk/sounds/TEXX-JP-WAV-8000/TEXX-JP-7-welcome)<br>exten => 1,2,SayDigits(${CALLERIDNUM})
<br>exten => 1,3,AGI(checkRegist.agi,${CALLERIDNUM})<br>exten => 1,4,GotoIf($["${ISREGISTERED}" = "0"]?texx-nihonggo-temp-regt|readnum|1:texx-nihonggo-regt-menu|readnum|1)<br>exten => h,1,Hangup
<br><br>then in you agi script...<br><br>$sql = "select status from phone where phonenumber = ? and status <> '1'";<br><br> $sth = $dbh->prepare($sql);<br> $sth->execute($phonenumber);
<br> $ret = $sth->rows();<br> if ($ret > 0) {<br> $AGI->set_variable('ISREGISTERED', '1');<br> exit;<br> } else {<br> $AGI->set_variable('ISREGISTERED','0');
<br> }<br><br><br>Hope that helps..<br><br>Best Regards,<br>Joanna Liza Mariazeta<br><a href="http://www.mariazeta.com">www.mariazeta.com</a><br><br><div><span class="gmail_quote">On 2/8/07, <b class="gmail_sendername">
prasanth</b> <<a href="mailto:rpmadala@mantragroup.com">rpmadala@mantragroup.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a fairly complicated setup. Extensions (1,2 and 3). In 3 - I<br>execute AGI in java which plays few wav files depending on external<br>parameters.<br><br>Can I have a dial plan inside my AGI? If not, how do I accomodate user
<br>who needs to reach extension 2 from my agi? I have tried stream file and<br>get data but the two commands did not work at all.<br>_______________________________________________<br>--Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</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">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>