diff --git a/callattendant/config.py b/callattendant/config.py index b4a7f8c..296f923 100644 --- a/callattendant/config.py +++ b/callattendant/config.py @@ -20,7 +20,7 @@ # and screened callers through to the home phone. # default_config = { - "VERSION": '1.7.2', + "VERSION": '1.7.3', "DEBUG": False, "TESTING": False, diff --git a/callattendant/hardware/modem.py b/callattendant/hardware/modem.py index 85a5a8e..cbc42f5 100644 --- a/callattendant/hardware/modem.py +++ b/callattendant/hardware/modem.py @@ -423,7 +423,9 @@ def play_audio(self, audio_file_name): if self._serial.in_waiting > 1: modem_data = self._serial.read(self._serial.in_waiting).decode("utf-8", "ignore").strip() if debugging: - print(">> play_audio input: {}".format(modem_data)) + print(">> play_audio input: {}".format( + "".join(map(lambda x: '' if x == DLE_CODE else + '' if x == ETX_CODE else x, modem_data)))) if modem_data != '': if modem_data[0] == DLE_CODE: if (modem_data[1] == DCE_PHONE_OFF_HOOK) or \ diff --git a/setup.py b/setup.py index 53127b1..ff6a679 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setuptools.setup( name="callattendant", # Add username when uploading to TestPyPI - version="1.7.2", # Ensure this is in-sync with VERSION in config.py + version="1.7.3", # Ensure this is in-sync with VERSION in config.py author="Ted Hess", author_email="thess@kitschensync.net", description="An automated call attendant and call blocker using a USR5637 or CX930xx modem",