From b7aafba377812e53114f81efb89d8e7faa1b3445 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 17 Dec 2015 12:59:41 +0100 Subject: [PATCH] CallDistanceTransceiver.py: resume command mode after dialing Put a semicolon after the AT command when dialing the destination number. Without this, some modems won't accept the ATH command and won't be able to terminate a call before the receiver has answered. --- src/savemysugar/CallDistanceTransceiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/savemysugar/CallDistanceTransceiver.py b/src/savemysugar/CallDistanceTransceiver.py index c251673..0ee4169 100755 --- a/src/savemysugar/CallDistanceTransceiver.py +++ b/src/savemysugar/CallDistanceTransceiver.py @@ -228,7 +228,7 @@ class CallDistanceTransceiver(object): # Dial, then wait self.call_setup_time to make sure the receiver gets # at least one RING, and then hangup and sleep the remaining time - self.modem.send_command("ATDT" + self.destination_number) + self.modem.send_command("ATDT" + self.destination_number + ";") time.sleep(self.call_setup_time) self.modem.send_command("ATH") self.modem.get_response() -- 2.1.4