- Joined
- Feb 9, 2023
- Messages
- 22
- Reaction score
- 2
For the last week I have been having issues where occasionally one or more of my trunks would lose registration with a 401 unauthorized error at least once a day. After 5 minutes the trunks would re-register. This was on v18 update 7. After talking to the support staff at Skyetel and sending them some Wireshark packet captures they responded with this:
It has come to our attention that a recent 3CX update is breaking RFC and causing customers who use SIP Registration to have registration issues. Specifically, section 22.1 of RFC3261, deals with the mechanism for SIP registration authentication requests and challenges.
Here's a summarized version:
- When a User Agent Client (UAC) sends a request to a server, the server can challenge the UAC to provide credentials to prove its identity.
- The server does this by sending a response with a status code of 401 (Unauthorized) or 407 (Proxy Authentication Required).
- This challenge response includes a "WWW-Authenticate" or "Proxy-Authenticate" header field, respectively. These headers contain a challenge value that the UAC must use to produce a valid response.
- The UAC responds to the challenge by resending the request with an "Authorization" or "Proxy-Authorization" header field, which contains the credentials.
- The credentials are typically a combination of username, realm, nonce (a one-time token from the server), and other values, which are used to create a "digest" using a specific algorithm (usually MD5).
- The server then verifies the digest. If it's valid, the server processes the request; if not, it can challenge the UAC again or reject the request.
Unfortunately, 3CX is no longer accepting the 401 as a valid response, and as such it is breaking the standardized way to handle SIP Registration.
We have reached out to them for clarification, and will update you when we hear more.
They mentioned a "recent update" although I had not yet updated to v18 Update 8 when this started. I have now installed this update but am not sure it will resolve the problem. Can someone with 3CX clarify what is going on?
The error I was getting looked similar to issues described in these threads albeit with a different SIP provider:
https://www.3cx.com/community/threads/authentication-error-because-of-using-same-nonce-by-3cx.61476/
https://www.3cx.com/community/threads/did-logic-call-or-registration-to-did-logic-has-failed.68724/
I can send in the Wireshark packet captures if needed.
It has come to our attention that a recent 3CX update is breaking RFC and causing customers who use SIP Registration to have registration issues. Specifically, section 22.1 of RFC3261, deals with the mechanism for SIP registration authentication requests and challenges.
Here's a summarized version:
- When a User Agent Client (UAC) sends a request to a server, the server can challenge the UAC to provide credentials to prove its identity.
- The server does this by sending a response with a status code of 401 (Unauthorized) or 407 (Proxy Authentication Required).
- This challenge response includes a "WWW-Authenticate" or "Proxy-Authenticate" header field, respectively. These headers contain a challenge value that the UAC must use to produce a valid response.
- The UAC responds to the challenge by resending the request with an "Authorization" or "Proxy-Authorization" header field, which contains the credentials.
- The credentials are typically a combination of username, realm, nonce (a one-time token from the server), and other values, which are used to create a "digest" using a specific algorithm (usually MD5).
- The server then verifies the digest. If it's valid, the server processes the request; if not, it can challenge the UAC again or reject the request.
Unfortunately, 3CX is no longer accepting the 401 as a valid response, and as such it is breaking the standardized way to handle SIP Registration.
We have reached out to them for clarification, and will update you when we hear more.
They mentioned a "recent update" although I had not yet updated to v18 Update 8 when this started. I have now installed this update but am not sure it will resolve the problem. Can someone with 3CX clarify what is going on?
The error I was getting looked similar to issues described in these threads albeit with a different SIP provider:
https://www.3cx.com/community/threads/authentication-error-because-of-using-same-nonce-by-3cx.61476/
https://www.3cx.com/community/threads/did-logic-call-or-registration-to-did-logic-has-failed.68724/
I can send in the Wireshark packet captures if needed.