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

Danny Nicholas danny at debsinc.com
Tue Jul 14 12:50:05 CDT 2009


The Verbose and If statements should be kosher, the Dial is not.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of VIP Carrier
Sent: Tuesday, July 14, 2009 12:45 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to block inbound call with Asterisk?

 

what ever he have posted there I have added it, just changed DID




On Tue, Jul 14, 2009 at 1:39 PM, Danny Nicholas <danny at debsinc.com> wrote:

The assumption here is that you took Phillipp’s AEL snippet and put into
extensions.ael.  Can you post what you put in?

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of VIP Carrier
Sent: Tuesday, July 14, 2009 12:27 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to block inbound call with Asterisk?

 

Here is what asterisk said
Sorry, but 1 syntax errors and 0 semantic errors were detected. It doesn't
make sense to compile.




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

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
--

_______________________________________________
-- 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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090714/49688f3e/attachment.htm 


More information about the asterisk-users mailing list