add re expression to call block function
misc
misc, change order of checking, add email notificaion, support xfinity ani text
This uses a USRobitics USB [modem][0] to get caller ID from a Plain Old Telphone Service (POTS) line.
If the caller ID:
[0]Of course I had thrown out all of my modems long ago!
[1]https://en.wikipedia.org/wiki/North_American_Numbering_Plan
[2]Interestingly once I added the hang up feature I got much less calls. I guess they don't like being forced to play for a call completion. Otherwise they typically hang up before it goes to voice mail.
I am using Python 3.7.7 on OpenBSD 6.7 release
In addition I installed the following packages:
cd ~ # or the parrent of whereever you want to install the software
git clone git@github.com:JonJFineman/callerID.git
I use vdirsyncer[3] to download my phone book. Alternativly you can manually download it.
set permissions for:
[3]http://vdirsyncer.pimutils.org/en/stable/
You will need to convert the downloaded VCF file to a flat text file by running:
run_convert.sh
Then you will want to add/change any entries in listBlock.txt, listSilent.txt. I provided a sample for you to follow.
Run the below command to run callBlock.py from the command line, which will place it in the background:
start_callerid.sh
Or you can run it from cron at boot time by adding the below entry into your crontab. See crontab.txt.
@reboot /home/YOUR-PATH/callerID/start_callerid.sh > /tmp/callerid.log 2>&1