Skip to content

Commit

Permalink
Release pyVoIP v1.6.4
Browse files Browse the repository at this point in the history
[FIX] Fixed gen_register always generating a new Call-ID, which broke some PBXs that required auth.
Fixed #74

Co-authored-by: hartwigt <53487604+hartwigt@users.noreply.github.com>
  • Loading branch information
tayler6000 and hartwigt committed Jan 21, 2023
1 parent 765cb1f commit a58f83c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'Tayler J Porter'

# The full version, including alpha/beta/rc tags
release = '1.6.3'
release = '1.6.4'

master_doc = 'index'

Expand Down
3 changes: 2 additions & 1 deletion pyVoIP/SIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,8 @@ def gen_register(self, request: SIPMessage, deregister=False) -> str:
f'To: "{self.username}" '
+ f"<sip:{self.username}@{self.server}>\r\n"
)
regRequest += f"Call-ID: {self.genCallID()}\r\n"
call_id = request.headers.get("Call-ID", self.gen_call_id())
regRequest += f"Call-ID: {call_id}\r\n"
regRequest += f"CSeq: {self.registerCounter.next()} REGISTER\r\n"
regRequest += (
"Contact: "
Expand Down
2 changes: 1 addition & 1 deletion pyVoIP/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__all__ = ["SIP", "RTP", "VoIP"]

version_info = (1, 6, 3)
version_info = (1, 6, 4)

__version__ = ".".join([str(x) for x in version_info])

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="pyVoIP",
version="1.6.3",
version="1.6.4",
description="PyVoIP is a pure python VoIP/SIP/RTP library.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a58f83c

Please sign in to comment.