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

Allow the regular expression-based Block and Permit lists to be edited from the web UI #157

Open galacticstudios opened 2 years ago

galacticstudios commented 2 years ago

I propose making BLOCK_NAME_PATTERNS, BLOCK_NUMBER_PATTERNS, PERMIT_NAME_PATTERNS, and PERMIT_NUMBER_PATTERNS editable from the web UI.

I propose changing config.py so that those properties contain file names instead of dictionaries. The files would then have each line be a regular expression, optionally followed by a colon and a human-readable description.

A new web page would present the files' contents to the user and let him edit and save them, which would modify the files.

When screening an incoming call, instead of the CallScreener object holding an in-memory copy of the regular expressions, it would read them from the files.

galacticstudios commented 2 years ago

Forgive me for not doing this right, but I'm unfamiliar with git and github.

You can find an implementation of my proposed enhancement at my fork, https://github.com/galacticstudios/callattendant

galacticstudios commented 2 years ago

I've added another feature: the option to send an e-mail when a caller leaves a recorded message.