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
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user