add re expression to call block function
misc, change order of checking, add email notificaion, support xfinity ani text
This uses a USRobitics USB [modem] to get caller ID from a Plain Old Telphone Service (POTS) line.
If the caller ID:
Of course I had thrown out all of my modems long ago!
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 email@example.com:JonJFineman/callerID.git
I use vdirsyncer to download my phone book. Alternativly you can manually download it.
set permissions for:
You will need to convert the downloaded VCF file to a flat text file by running:
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:
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