From dd2c83c94e86e2d1f49434bd3539a76ff64e5d85 Mon Sep 17 00:00:00 2001 From: TJ Porter Date: Wed, 14 Feb 2024 09:45:45 -0600 Subject: [PATCH] Release pyVoIP v2.0.0a5 --- docs/conf.py | 2 +- pyVoIP/SIP/client.py | 30 +++++++++++++++--------------- pyVoIP/__init__.py | 2 +- setup.py | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c931cdb..d3b4cd3 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 = "2.0.0a4" +release = "2.0.0a5" master_doc = "index" diff --git a/pyVoIP/SIP/client.py b/pyVoIP/SIP/client.py index 0490ae8..d7bf526 100644 --- a/pyVoIP/SIP/client.py +++ b/pyVoIP/SIP/client.py @@ -1237,9 +1237,9 @@ def bye(self, request: SIPMessage) -> None: ), ) response = SIPMessage.from_bytes(conn.recv(8192)) - if response.status == ResponseCode(401) or response.status == ResponseCode( - 407 - ): + if response.status == ResponseCode( + 401 + ) or response.status == ResponseCode(407): # Requires password auth = self.gen_authorization(response) message = message.replace( @@ -1285,9 +1285,9 @@ def __deregister(self) -> bool: first_response = response conn.close() # Regardless of the response, the dialog is over - if response.status == ResponseCode(401) or response.status == ResponseCode( - 407 - ): + if response.status == ResponseCode( + 401 + ) or response.status == ResponseCode(407): # Unauthorized, likely due to being password protected. password_request = self.gen_register(response, deregister=True) conn = self.send(password_request) @@ -1310,9 +1310,9 @@ def __deregister(self) -> bool: elif response.status == ResponseCode.OK: return True - elif response.status == ResponseCode(401) or response.status == ResponseCode( - 407 - ): + elif response.status == ResponseCode( + 401 + ) or response.status == ResponseCode(407): # At this point, it's reasonable to assume that # this is caused by invalid credentials. debug("=" * 50) @@ -1385,9 +1385,9 @@ def __register(self) -> bool: first_response = response conn.close() # Regardless of the response, the dialog is over - if response.status == ResponseCode(401) or response.status == ResponseCode( - 407 - ): + if response.status == ResponseCode( + 401 + ) or response.status == ResponseCode(407): # Unauthorized, likely due to being password protected. password_request = self.gen_register(response) conn = self.send(password_request) @@ -1408,9 +1408,9 @@ def __register(self) -> bool: elif response.status == ResponseCode.OK: return True - elif response.status == ResponseCode(401) or response.status == ResponseCode( - 407 - ): + elif response.status == ResponseCode( + 401 + ) or response.status == ResponseCode(407): # At this point, it's reasonable to assume that # this is caused by invalid credentials. debug("=" * 50) diff --git a/pyVoIP/__init__.py b/pyVoIP/__init__.py index 11a23bb..63711ce 100644 --- a/pyVoIP/__init__.py +++ b/pyVoIP/__init__.py @@ -2,7 +2,7 @@ __all__ = ["SIP", "RTP", "VoIP"] -version_info = (2, 0, "0a4") +version_info = (2, 0, "0a5") __version__ = ".".join([str(x) for x in version_info]) diff --git a/setup.py b/setup.py index f0f00fb..a8d046c 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="pyVoIP", - version="2.0.0a4", + version="2.0.0a5", description="PyVoIP is a pure python VoIP/SIP/RTP library.", long_description=long_description, long_description_content_type="text/markdown",