[asterisk-users] Blacklist callers from file

Frank Vanoni mailinglist at linuxista.com
Wed Aug 31 04:00:55 CDT 2016


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)

....
...
..
.






More information about the asterisk-users mailing list