Bug fix: Cleartelnet code werkte niet omdat deze in de if stond voor 0 bytes ontvangen.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marcel Nijenhof
2022-06-29 14:23:40 +00:00
parent ac54b7cd0d
commit 42799296a9

View File

@@ -668,9 +668,9 @@ recieve a answer from the sip server
if (len(bytebuf) == 0): if (len(bytebuf) == 0):
c+=1 c+=1
self.log.debug("recv: bytebuf: %s" % bytebuf) self.log.debug("recv: bytebuf: %s" % bytebuf)
if self.cleartelnet: if self.cleartelnet:
if bytebuf[0] == 255: if bytebuf[0] == 255:
bytebuf = b'' bytebuf = b''
except Exception as e: except Exception as e:
self.log.error("SipLmw.recv: socket timeout: %s", e) self.log.error("SipLmw.recv: socket timeout: %s", e)
self.closesocket() self.closesocket()