Replies: 3 comments 1 reply
-
That is strange. pyVoIP has not been designed to connect to proxies yet so I would expect registration to fail, but I also would expect it to debug that a 407 was received. def __register(self) -> bool:
...
elif response.status == SIPStatus(407):
# Proxy Authentication Required
# TODO: implement
debug("Proxy auth required")
.... Per the above code, you should at least be seeing that. Maybe call Also, if 3CX is an open source proxy, could you link it here? I've been wanting to implement proxy support for a while but haven't had a proxy server to test against. |
Beta Was this translation helpful? Give feedback.
-
3cx is surely NOT an open source proxy, I already made some changes to the code in order to attempt to get proxy authentication to work. All it requires is deal with 401 and 407 the same way and #213 ensuring it uses the correct credential pair (username for 401, user for 407), I kinda did it already for the master tree , which I actually got to connect to 3cx using proxy-authentication, but you told me to work on dev 😈 luckily I kept a diff pyVoIP.diff.txt for master (which also fixes some deprecation warnings) |
Beta Was this translation helpful? Give feedback.
-
#228 fixes my issues in regards to this |
Beta Was this translation helpful? Give feedback.
-
HW: Raspberry Pi Zero 2
OS: Raspian Bookworm
Python: Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
This is the connection code I currently have:
In wireshark, I do see the REGISTER call, and I do see the PBX (yes 3CX, that is what I am trying to get to run as you know) sending back a 407, however, in debug, I do no see it being received, nor being followed up. This is what I see (being repeated a couple of times until threshold is reached:
and eventually:
Beta Was this translation helpful? Give feedback.
All reactions