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

No blocked call hang up if BLOCKED_ACTIONS = () #126

Closed drano02 closed 3 years ago

drano02 commented 3 years ago

If BLOCKED_ACTIONS = () and a blocked caller calls, it will not answer and hang up on the caller. The phone keeps on ringing. I had the same problem with v1.0. In app.py, if I change the following to not check the length of actions, it works for me:

            # Answer the call!

# if ok_to_answer and len(actions) > 0: if ok_to_answer: self.answer_call(actions, greeting, call_no, caller)

emxsys commented 3 years ago

@drano02 Thanks for reporting this. I will investigate.