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

Handle missing caller id data #120

Closed emxsys closed 3 years ago

emxsys commented 3 years ago

Some telcos do not provide all the caller id fields. Fields other than the NMBR should be optional.

From callattendant forum message:

I'm in the process of getting this package to work in UK using USRobotics 5637 and Raspberry PI A+ So far I have had to add a line 204 to modem.py call_record['NAME'] = "" because the UK CLI doesn't seem support this field..

From another callattendant forum message:

My test call wasn't displayed because the phone didn't provide the DATE and TIME fields. As a result I've modified modem.py to initialise call_record prior to searching for the data from readline(). now=datetime.now() call_record['DATE']=now.strftime("%m%d") call_record['TIME']=now.strftime("%H%M") call_record['NAME']="Unknown"