On Sat, 2016-08-27 at 17:59 +0200, tux john wrote:

> Hi. I would like to blacklist a few callers 

Example: callers with CallerID 0123456789, 9876543210 and 7410258963 are
sent to tt-monkeys. Callers from area code 555 are also blocked.


In "extensions.conf" file add

#include "blacklist.conf"


In "blacklist.conf" 

exten => s/0123456789,1,playback(tt-monkeys)

exten => s/9876543210,1,playback(tt-monkeys)

exten => s/7410258963,1,playback(tt-monkeys)

exten => s/_555XXXXXXX,1,playback(tt-monkeys)

....
...
..
.




-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to