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 <[EMAIL PROTECTED]> 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
>
_______________________________________________
--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

Reply via email to