本帖最後由 TsinTsin 於 2011-3-30 14:43 編輯
Add the Blacklist to Asterisk database using CLI
# asterisk -r
# core show help database

To insert a number into the Black list from the CLI
# database put blacklist <name/number> 1
# database put blacklist 128100 1

To delete a number from the blacklist using the CLI
# database del blacklist <name/number>
# database del blacklist 128100

To show the database blacklist using the CLI
# database show blacklist

To show the database blacklist using the webui

All AD list for HK about 50099 numbers:

Main AD list for HK about 6948 numbers:

You also can Filter AD Numbers using your smartphone. (StudioKUMA 小熊來電通知)


Using Notepad++/Wordpad open the "blacklist_put.txt" and copy the list to Asterisk CLI
http://www.vpnbest.com/voip/asterisk/94-asterisk-blacklist-advertising
Advertising Database for HongKong:
http://hkjunkcall.com/web_software.asp
Reference:
http://www.voip-info.org/wiki/view/Asterisk+cmd+LookupBlacklist |