From 45cc6499701c54ee26dc344dedeeae8717105e9f Mon Sep 17 00:00:00 2001 From: TJ Porter Date: Wed, 3 Jan 2024 16:20:00 -0600 Subject: [PATCH] Fixes #194 [FIX] Fixed missing Max-Fowards header in BYE request --- pyVoIP/SIP.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyVoIP/SIP.py b/pyVoIP/SIP.py index 6e48631..a737b0d 100644 --- a/pyVoIP/SIP.py +++ b/pyVoIP/SIP.py @@ -1527,6 +1527,7 @@ def gen_bye(self, request: SIPMessage) -> str: byeRequest += f"Call-ID: {request.headers['Call-ID']}\r\n" cseq = int(request.headers["CSeq"]["check"]) + 1 byeRequest += f"CSeq: {cseq} BYE\r\n" + byeRequest += "Max-Forwards: 70\r\n" byeRequest += ( "Contact: " + f"\r\n"