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" <[EMAIL PROTECTED]> To: "TAUG" <[email protected]> Sent: Tuesday, April 22, 2008 1:02 PM Subject: Re: [on-asterisk] Block list of numbers 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 On Tue, Apr 22, 2008 at 11:35 AM, Liviu Toma <[EMAIL PROTECTED]> wrote: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
