401 Unauthorized

SIP Wi-fi phones on freebpx have stopped registering. Last time, installing the firewall helped. Tell me what could be the reason
Error:

Register
Via: SIP/2.0/UDP 10.2.2.31:56540;branch=z9hG4bK1207160006;rport
From: sip:[email protected];tag=878673813
To: sip:[email protected]
▒Call-ID: [email protected]
▒CSeq: 3182 REGISTER
▒Contact: sip:[email protected]:56540;reg-id=1;+sip.instance=“urn:uuid:00000000-0000-1000-8000-C074AD396250
Authorization: Digest username=“257”, realm=“asterisk”, nonce=“1629185562/e7e87400f39d274ba814f0a82730d7b9”, uri=“sip:10.2.2.14”, response=“1490323e8808caac0170
d2cdcd4853”, algorithm=md5, cnonce=“05323762”, opaque=“75276ff864e04654”, qop=auth, nc=00000014
Max-Forwards: 70
User-Agent: Grandstream WP810 1.0.7.83
Supported: path
Expires: 3600
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

401 Unauthorized
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.2.2.31:56540;rport=56540;received=10.2.2.31;branch=z9hG4bK1207160006
Call-ID: [email protected]
From: sip:[email protected];tag=878673813
To: sip:[email protected];tag=z9hG4bK1207160006
CSeq: 3182 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1629189273/d379451caacc7c8a62771e025b57288f”,opaque=“46e693b275285400”,stale=true,algorithm=md5,qop=“auth”
Server: FPBX-15.0.17.43(16.19.0)
Content-Length: 0

Technically your log does not show an error. This can happen if the device uses a stale nonce, in which case it should retry with the nonce from the 401. It could also happen, at least for chan_sip, if the device was not recognized and you have alwaysauthreject set (as Asterisk is trying not to let an attacker know that whether they were recognized as a valid extension. The logs from Asterisk should clarify this.

You didn’t say which channel driver you sere using for SIP, and you didn’t provide enough logging to be able to see whether the device retried with the updated nonce.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.