From 8ee4de1707f657551d3995fc1579682badadf85f Mon Sep 17 00:00:00 2001 From: Alexander Maassen Date: Sat, 13 Jan 2024 23:08:37 +0000 Subject: [PATCH] use user credentials for proxy-authentication --- pyVoIP/SIP/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyVoIP/SIP/client.py b/pyVoIP/SIP/client.py index 7d17aed..b8cdd7d 100644 --- a/pyVoIP/SIP/client.py +++ b/pyVoIP/SIP/client.py @@ -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"]