Skip to content

Commit

Permalink
use user credentials for proxy-authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
key2peace committed Jan 13, 2024
1 parent 9cba94c commit 8ee4de1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyVoIP/SIP/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ def gen_digest(
user = request.headers["From"]["user"]
credentials = self.credentials_manager.get(server, realm, user)
username = credentials["username"]
if request.authentication["header"].lower() == "proxy-authenticate":
username = credentials["user"]
password = credentials["password"]
nonce = request.authentication["nonce"]
method = request.headers["CSeq"]["method"]
Expand Down

0 comments on commit 8ee4de1

Please sign in to comment.