[Asterisk-Users] Include Text file in Dial Plan

Anthony Cennami acennami at gmail.com
Fri Jun 23 15:23:01 MST 2006


Or you could use the LookupBlacklist command in the dialplan.



On 6/23/06, Maxim Vexler <hq4ever at gmail.com> wrote:
>
> On 6/23/06, Forrest Beck <jonforrest.beck at gmail.com> wrote:
> >
> >
> >
> >
> > Is there a way to include a search of a text file in the dial plan?
> >
> >
> >
> > I am trying to think of a good way to keep a sort of Blacklist file that
> is
> > checked against before letting a call through.  If the callerid is
> listed in
> > the file, it will go to Hangup()
>
> You can achieve this in several different methods :
>
> 1. Use asterisk build in database, astdb, or use MySQL to start with
> (which will also allow you to do advanced text based character
> matching using the query string).
>
> http://www.voip-info.org/wiki/index.php?page=Asterisk+-+documentation+of+application+commands#Databasehandling
>
> 2. Use the [system] application to call any of the GNU tool's to match
> your file (grep and awk come to mind)
>
> 3. Use AGI and call your php / perl script to do the nasty job for you.
>
> HTH
>
> Maxim.
>
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
>
>
> --
> Cheers,
> Maxim Vexler
>
> "Free as in Freedom" - Do u GNU ?
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Anthony D Cennami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060623/cb566340/attachment.htm


More information about the asterisk-users mailing list