Or you could use the LookupBlacklist command in the dialplan.<br><br><br><br><div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Maxim Vexler</b> <<a href="mailto:hq4ever@gmail.com">hq4ever@gmail.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;">On 6/23/06, Forrest Beck <<a href="mailto:jonforrest.beck@gmail.com">jonforrest.beck@gmail.com
</a>> wrote:<br>><br>><br>><br>><br>> Is there a way to include a search of a text file in the dial plan?<br>><br>><br>><br>> I am trying to think of a good way to keep a sort of Blacklist file that is
<br>> checked against before letting a call through. If the callerid is listed in<br>> the file, it will go to Hangup()<br><br>You can achieve this in several different methods :<br><br>1. Use asterisk build in database, astdb, or use MySQL to start with
<br>(which will also allow you to do advanced text based character<br>matching using the query string).<br><a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+-+documentation+of+application+commands#Databasehandling">
http://www.voip-info.org/wiki/index.php?page=Asterisk+-+documentation+of+application+commands#Databasehandling</a><br><br>2. Use the [system] application to call any of the GNU tool's to match<br>your file (grep and awk come to mind)
<br><br>3. Use AGI and call your php / perl script to do the nasty job for you.<br><br>HTH<br><br>Maxim.<br><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>><br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>><br>><br>><br><br><br>--<br>Cheers,<br>Maxim Vexler<br><br>"Free as in Freedom" - Do u GNU ?<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><br clear="all"><br>-- <br>Anthony D Cennami<br>