Skip to content

Commit

Permalink
Release pyVoIP v2.0.0a5
Browse files Browse the repository at this point in the history
  • Loading branch information
tayler6000 committed Feb 14, 2024
1 parent 8438d15 commit dd2c83c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 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 = "2.0.0a4"
release = "2.0.0a5"

master_doc = "index"

Expand Down
30 changes: 15 additions & 15 deletions pyVoIP/SIP/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyVoIP/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

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="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",
Expand Down

0 comments on commit dd2c83c

Please sign in to comment.