[Freeswitch-users] mod_blacklist

Terry Barnum terry at digital-outpost.com
Tue Jul 29 05:27:32 MSD 2014


I started playing around this weekend with blacklisting certain telemarketers that seem to call like clockwork.

I got it working using <https://confluence.freeswitch.org/display/FREESWITCH/mod_blacklist> as a starting point. For now I'm just using the console to add numbers, not a dialplan extension.

If I have two numbers in the blocked list and delete one of them using the console, then save the list, it still saves both numbers to the blocked file. I have to manually edit blocked.list to remove the number.

FreeSWITCH Version 1.4.6+git~20140603T193516Z~9479729340~64bit (git 9479729 2014-06-03 19:35:16Z 64bit) on a 2.3GHz i7 MacMini.

From the console:

freeswitch at mini.local> blacklist add blocked 1234567890
+OK
2014-07-28 18:09:26.556327 [INFO] mod_blacklist.c:228 Added [1234567890] to list [blocked]

freeswitch at mini.local> blacklist check blocked 1234567890
true

freeswitch at mini.local> blacklist del blocked 1234567890
+OK
2014-07-28 18:09:50.776324 [INFO] mod_blacklist.c:250 Removed [1234567890] from list [blocked]

freeswitch at mini.local> blacklist check blocked 1234567890
false

freeswitch at mini.local> blacklist save blocked
2014-07-28 18:10:11.056373 [INFO] mod_blacklist.c:280 Saving blocked to /usr/local/freeswitch/conf/blacklists/blocked.list
2014-07-28 18:10:11.056373 [DEBUG] mod_blacklist.c:288 adding 15129160420 to the dump file
+OK
2014-07-28 18:10:11.056373 [DEBUG] mod_blacklist.c:288 adding 1234567890 to the dump file

The last line shows fs saving the deleted number to the blocked list. Are the docs incorrect? Is there another way to do this?

Thanks,
-Terry





Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list