emxsys / callattendant

A python-based automated call attendant, call blocker, and voice messaging system running on a Raspberry Pi. Screens callers and block robocalls and scams with a low-cost Raspberry Pi and modem.
https://emxsys.github.io/callattendant/
MIT License
115 stars 37 forks source link

Add Permitted Name/Number RegEx patterns #117

Closed emxsys closed 3 years ago

emxsys commented 3 years ago

From a callattendant forum entry:

May I suggest that the tests for permitted and blocked numbers be widened so that all calls starting with a certain group would be allowed or blocked as the case may be. For example, all local calls in my area in the UK start with 01628 and I'd like to permit all of these. Conversely I'd like to block all calls from numbers not starting with 01, 02, 03 or 07, say.

Add PERMIT_NAME_PATTERNS and PERMIT_NUMBER_PATTERNS configuration settings that accept a collection of regular expressions (RegEx) used to permit matching callers.