[asterisk-users] How to block inbound call with Asterisk?

Steve Edwards asterisk.org at sedwards.com
Tue Jul 14 12:54:24 CDT 2009


Un-top-posting...

>> VIP Carrier schrieb:

>>> How would you block inbound call's? for example person who is calling 
>>> me is 212-555-1212, and I would like to do not receive the calls from 
>>> this person and give them busy tone. What should I write in asterisk 
>>> config files?

> On Tue, Jul 14, 2009 at 12:05 PM, Philipp Kempgen <philipp.kempgen at amooma.de
>> wrote:

>> core show function CALLERID
>>
>> Verbose(1,### Inbound call from ${CALLERID(num)});
>> if ("${CALLERID(num)}" = "2125551212") {
>>        Verbose(1,### Block this guy);
>>        Busy(5);
>>        Hangup();
>> }

On Tue, 14 Jul 2009, VIP Carrier wrote:

> Here is what asterisk said

> Sorry, but 1 syntax errors and 0 semantic errors were detected. It 
> doesn't make sense to compile.

I'm a 1.2 Luddite (AEL is supposedly much improved since the dark ages), 
but I think you need a "semi" after the "if's" closing brace.

I'd suggest staying away from AEL until you have a much better 
understanding of Asterisk and dialplans. Until your dialplans reach a 
level of complexity where you need AEL's control structures for clarity, 
you should stay with "conf."

You should have started here:

http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf

and search for "girlfriend."

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list