From 8519aa07298667b10065e041a57eac1e6a13fbc2 Mon Sep 17 00:00:00 2001 From: claccly Date: Tue, 28 Apr 2026 10:02:09 +0200 Subject: [PATCH] Fix for the issue #272: Call End automatically after 30 sec in pyVoIP 1.6.8; for same code it doesn't end in 1.5.6 The ack message was sent using a new tag instead of the one from the incoming message. --- pyVoIP/SIP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyVoIP/SIP.py b/pyVoIP/SIP.py index 633d695..1cd2d70 100644 --- a/pyVoIP/SIP.py +++ b/pyVoIP/SIP.py @@ -1562,7 +1562,7 @@ def gen_ack(self, request: SIPMessage) -> str: ackMessage += "Max-Forwards: 70\r\n" ackMessage += ( f"To: {request.headers['To']['raw']};tag=" - + f"{self.gen_tag()}\r\n" + + f"{request.headers['To']['tag']}\r\n" ) ackMessage += f"From: {request.headers['From']['raw']};tag={tag}\r\n" ackMessage += f"Call-ID: {request.headers['Call-ID']}\r\n"