In the last year I recived over 100 spam calls on my land line so I decided to finally do something about it and have a little fun with them.

Bringing you “PhoneSpamBlock”.

It’s not much but its pretty effective. With a few lines of code and the help of the linephone SDK and the C# wrapper I managed to build a neat little tool.

You can find the code here or a compiled version here as a installer or here with the call manager as a file collection.

To use it you just have to create an VOIP device on your fritzbox or other router.

Then call PhoneSpamBlock.exe

  • -api [Apiurl like]
  • -keyword [String to find a bad scored number]
  • -regex [regex to filter numbers]
  • -server [Your VOIP server]
  • -user [Username]
  • -pw [Password]

You can set comma/new line separated white and a black lists in txt files. (Change requires application restart)

These lists can contain numbers with *. 0049* blocks all calls from Germany for example.

If the bot answers the call a random file from the sounds directory (not included for copy right reasons) is played and the call is recorded.

You can create folders inside the Sounds directory named like the start of a number to play certain files for special numbers only. \Sounds\0049 for media for calls from Germany only.

To connect the call manager to the server call it like: [pathtothemanager]\callmanager.exe -[server name]


Virtual cable to reroute the sound output to the input so the caller can hear the audio clips.

Buy Me A Coffee
This entry was posted in Software and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *