From a58f83c1561a93a7fb86d52277205dc175cec865 Mon Sep 17 00:00:00 2001 From: TJ Porter Date: Sat, 21 Jan 2023 13:07:32 -0600 Subject: [PATCH] Release pyVoIP v1.6.4 [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> --- docs/conf.py | 2 +- pyVoIP/SIP.py | 3 ++- pyVoIP/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 180de86..b93c397 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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' diff --git a/pyVoIP/SIP.py b/pyVoIP/SIP.py index d8bad03..c527af4 100644 --- a/pyVoIP/SIP.py +++ b/pyVoIP/SIP.py @@ -1217,7 +1217,8 @@ def gen_register(self, request: SIPMessage, deregister=False) -> str: f'To: "{self.username}" ' + f"\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: " diff --git a/pyVoIP/__init__.py b/pyVoIP/__init__.py index bc3ff43..376150f 100644 --- a/pyVoIP/__init__.py +++ b/pyVoIP/__init__.py @@ -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]) diff --git a/setup.py b/setup.py index a328e31..1e2d8b7 100644 --- a/setup.py +++ b/setup.py @@ -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",