[on-asterisk] Block list of numbers

0 views
Skip to first unread message

Liviu Toma

unread,
Apr 22, 2008, 11:35:24 AM4/22/08
to TAUG
Hello,

Is there a way to have Asterisk look up the caller ID of incoming
calls in a text file and reject the call if it matches ?
Currently I have a long list of something like:
exten => s,n,GotoIf($["${CALLERID(number)}" = "4165551234"]?1234,1)
where extenson 1234 rejects the call, but obviously is not very practical.

Thanks,
Liviu

---------------------------------------------------------------------
To unsubscribe, e-mail: asterisk-u...@uc.org
For additional commands, e-mail: asteri...@uc.org

Remzi Semsettin Turer

unread,
Apr 22, 2008, 11:38:13 AM4/22/08
to TAUG
Why don't you use a simple script (I use a PHP one, but you can use almost any language)?

Dave Donovan

unread,
Apr 22, 2008, 1:02:11 PM4/22/08
to TAUG
It's funny. When I was learning asterisk in the pre 1.0 days, I remember
one of the sample apps out there was an app that I guy wrote to hang up on
his ex-girlfriend who was stalking him. Blacklist has been around for a
while in various forms. :-)

Maybe this will help:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+LookupBlacklist

I've also seen things out there that allow you to dial an extension and add
the last caller's number to the blacklist.

Dave

Elliott Jeyaseelan

unread,
Apr 22, 2008, 1:09:24 PM4/22/08
to Dave Donovan, TAUG
http://pbxinaflash.com/ (obviously with freepbx) can add the last
callers number to the blacklist...by dialling a feature key code

Elliott

Liviu Toma

unread,
Apr 22, 2008, 1:18:43 PM4/22/08
to TAUG
Thanks everyone ! I think the LookupBlacklist is just what I was looking
for, but I think I will also try the suggestions about calling an external
script (at least for the sake of learning).

Liviu

----- Original Message -----
From: "Dave Donovan" <donova...@gmail.com>
To: "TAUG" <aste...@uc.org>
Sent: Tuesday, April 22, 2008 1:02 PM
Subject: Re: [on-asterisk] Block list of numbers

Reply all
Reply to author
Forward
0 new messages