Skip to content

Commit

Permalink
Fixes #194
Browse files Browse the repository at this point in the history
[FIX] Fixed missing Max-Fowards header in BYE request
tayler6000 committed Jan 3, 2024
1 parent 6fb6161 commit 45cc649
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyVoIP/SIP.py
Original file line number Diff line number Diff line change
@@ -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"<sip:{self.username}@{self.myIP}:{self.myPort}>\r\n"

0 comments on commit 45cc649

Please sign in to comment.