Skip to content

Commit 5e41dbe

Browse files
authored
Merge pull request #50 from 9dogs/master
HUAWEI CEND notification format fix
2 parents f88e107 + 81bdf5b commit 5e41dbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gsmmodem/modem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def connect(self, pin=None, waitingForModemToStartInSeconds=0):
291291
self.log.info('Loading Huawei call state update table')
292292
self._callStatusUpdates = ((re.compile('^\^ORIG:(\d),(\d)$'), self._handleCallInitiated),
293293
(re.compile('^\^CONN:(\d),(\d)$'), self._handleCallAnswered),
294-
(re.compile('^\^CEND:(\d),(\d),(\d)+,(\d)+$'), self._handleCallEnded))
294+
(re.compile('^\^CEND:(\d),(\d+),(\d)+,(\d)+$'), self._handleCallEnded))
295295
self._mustPollCallStatus = False
296296
# Huawei modems use ^DTMF to send DTMF tones; use that instead
297297
Call.DTMF_COMMAND_BASE = '^DTMF={cid},'

0 commit comments

Comments
 (0)