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

Philipp Kempgen philipp.kempgen at amooma.de
Tue Jul 14 11:05:01 CDT 2009


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?

core show function CALLERID

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

> and in to witch file should I
> write it???

extensions.ael? extensions.conf?


    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list