[asterisk-users] Automating blacklists
Brian Hutchinson
b.hutchman at gmail.com
Thu Oct 18 08:51:13 CDT 2007
Is there a function to write the timestamp of the first call? I started
thinking about AGI and PHP/MySQL since that is what I'm familiar with. I
couldn't find methods to write timestamp info to AstDB or if I could ... how
to read it back and compare it to "time now" to decide to increment my
counter and have the dial plan decide to allow the call or not.
On 10/18/07, Jared Smith <jsmith at digium.com> wrote:
>
> On Thu, 2007-10-18 at 16:02 +0300, Brian Hutchinson wrote:
> > I would like to automatically blacklist a incoming number based on
> > timestamp and count information.
> >
> > For example, if I get a prank call from the same number 5 times within
> > 15 minutes, I want my dialplan to automatically blacklist this number.
> >
> > Should I be looking at AGI to do something like this?
>
> You could do it with an AGI, or with dialplan logic and the AstDB
> database. If you use the AstDB database to store blacklisted numbers,
> you can also use the BLACKLIST dialplan function to check to see if a
> given number is blacklisted or not.
>
>
> --
> Jared Smith
> Community Relations Manager
> Digium, Inc.
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071018/bb2b0607/attachment.htm
More information about the asterisk-users
mailing list