Automatically Block Unwanted Calls
How to Automatically Block Unwanted Calls
In this sample, we use Who Called Us (http://whocalled.us/) as a database for detecting unwanted telemarketing calls. With the following DialPlan rule, Brekeke SIP Server rejects an incoming call if the caller’s phone number is listed in the Who Called Us database.
1. Get a service account at http://whocalled.us/join
2. Add the DialPlan rule below in your Brekeke SIP Server. Make sure to use your own username and password in the red parts shown below.
Matching Patterns
$request = ^INVITE From = sip:(.+)@ $webget("http://whocalled.us/do?action=getScore&name=Name&pass=Password&phoneNumber=%1") = score.(.+)
Deploy Patterns
$action = 603
Note:
$webget method is available in the Advanced Edition only.