Correctie cleartelnet patch
This commit is contained in:
@@ -158,8 +158,9 @@ send a sip command to the server
|
|||||||
|
|
||||||
recieve a answer from the sip server
|
recieve a answer from the sip server
|
||||||
"""
|
"""
|
||||||
|
bytebuf=b''
|
||||||
stringbuf=""
|
stringbuf=""
|
||||||
while self._socket != None and re.search("\r$", buf) == None:
|
while self._socket != None and re.search("\r$", bytebuf.decode('utf-8')) == None:
|
||||||
try:
|
try:
|
||||||
self.log.debug("LmwSip.recv: Waiting for data");
|
self.log.debug("LmwSip.recv: Waiting for data");
|
||||||
bytebuf = self._socket.recv(4096)
|
bytebuf = self._socket.recv(4096)
|
||||||
|
Reference in New Issue
Block a user