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> &lt;<a href="mailto:hq4ever@gmail.com">hq4ever@gmail.com</a>
&gt; 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 &lt;<a href="mailto:jonforrest.beck@gmail.com">jonforrest.beck@gmail.com
</a>&gt; wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Is there a way to include a search of a text file in the dial plan?<br>&gt;<br>&gt;<br>&gt;<br>&gt; I am trying to think of a good way to keep a sort of Blacklist file that is
<br>&gt; checked against before letting a call through.&nbsp;&nbsp;If the callerid is listed in<br>&gt; 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>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br>&gt;<br>&gt; Asterisk-Users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;<br>&gt; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>&gt;<br>&gt;<br>&gt;<br><br><br>--<br>Cheers,<br>Maxim Vexler<br><br>&quot;Free as in Freedom&quot; - 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>&nbsp;&nbsp; <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>