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.
- Get a service account at http://whocalled.us/join
- 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.
|$request = ^INVITE|
From = sip:(.+)@
$webget("http://whocalled.us/do?action=getScore&name=Name&pass=Password&phoneNumber=%1") = score.(.+)
|$action = 603|
Note: $webget method is available in the Advanced Edition only.