- Joined
- Aug 7, 2012
- Messages
- 18
- Reaction score
- 1
I am experiencing an issue with my SIP trunk to DID Logic. This is occuring on 2 seperate 3CX installations using seperate SIP trunks to DID Logic.
It appears to be similar to the report at https://www.3cx.com/community/threa...of-using-same-nonce-by-3cx.61476/#post-259536
I get the following sequence of email alerts from 3CX
1722hrs - Trunk L:10000(DID Logic) has changed status to unregistered. This means that no more calls will pass via this trunk. Please check your network connection and the voip provider or other SIP PBX
1722hrs - Call or Registration to DID Logic has failed. sip:[email protected]:5060 replied: 401 Unauthorized; from IP:119.9.12.222:5060
1727hrs - Trunk L:10000(DID Logic) has changed status to registered.
This happens regularly but inconsistently. Can be everyday or 7 days between.
I contacted DID Logic and they provided the following breakdown. PLEASE NOTE SOME DETAILS HAVE BEEN CHANGED FOR SECURITY REASONS.
"
As far as we can see from your recent REGISTER attempts your 3cx is not quite accurate with responses.
Here are our recent observations:
The first REGISTER from your end came as follows:
2019/10/15 22:47:16.512379 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA=",uri="sip:sip.au.didlogic.net:5060",response="8c66a5cd826b2cbe5553
8aaa7e3900",cnonce="f2272cbd33777276bc986fca73da9a9b",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
Please note the following argument:
nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA="
We've answered 401 Unauthorized, as the previous REGISTER has expired:
2019/10/15 22:47:16.513598 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.0c2e
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
WWW-Authenticate: Digest realm="sip.au.didlogic.net", nonce="XaZNoF2mTHS+WkIzbddf0PoWQgktRBLEkY/SXoA=", qop="auth"
Content-Length: 0
and we've provided you with the new nonce:
nonce="XaZNoF2mTHS+WkIzbddf0PoWQgktRBLEkY/SXoA="
Your 3CX has sent the second REGISTER attempt:
2019/10/15 22:47:17.512853 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA=",uri="sip:sip.au.didlogic.net:5060",response="8c66a5cd826b2cbe5553
8aaa7e3900",cnonce="f2272cbd33777276bc986fca73da9a9b",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
As you can find, your 3CX has sent the same nonce which is incorrect and violates the RFC:
nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA="
Then we answered with 401 Unauthorized second time with new nonce:
2019/10/15 22:47:17.514141 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.0c2e
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
WWW-Authenticate: Digest realm="sip.au.didlogic.net", nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA=", qop="auth"
Content-Length: 0
nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA="
and then your end provides us with the correct credentials:
2019/10/15 22:47:17.571450 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---55e7ce15e8487c26;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 20 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA=",uri="sip:sip.au.didlogic.net:5060",response="f274ea9da23e3a69aa6a
ef57a8f5ec",cnonce="929010be0df820c411f5bb40c1fc2820",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
And we answer 200 OK:
2019/10/15 22:47:17.572946 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---55e7ce15e8487c26;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9275
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 20 REGISTER
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>;expires=120
Content-Length: 0
Please note, that 3 incorrect REGISTER attempts in a row lead to the temporary IP blockage due to security reasons for 5 minutes.
Then IP will be released from the blacklist.
As far as we see from now, that what has happened. Please check your 3CX settings.
"
My understanding from their response is that 3CX is using the same NONCE after it has expired. Then gets blacklisted for 5 mins. Then uses correct NONCE and all is ok until next time. I presume that there is a setting in the SIP config that might assist with this.
Thank you for any assistance you can offer.
It appears to be similar to the report at https://www.3cx.com/community/threa...of-using-same-nonce-by-3cx.61476/#post-259536
I get the following sequence of email alerts from 3CX
1722hrs - Trunk L:10000(DID Logic) has changed status to unregistered. This means that no more calls will pass via this trunk. Please check your network connection and the voip provider or other SIP PBX
1722hrs - Call or Registration to DID Logic has failed. sip:[email protected]:5060 replied: 401 Unauthorized; from IP:119.9.12.222:5060
1727hrs - Trunk L:10000(DID Logic) has changed status to registered.
This happens regularly but inconsistently. Can be everyday or 7 days between.
I contacted DID Logic and they provided the following breakdown. PLEASE NOTE SOME DETAILS HAVE BEEN CHANGED FOR SECURITY REASONS.
"
As far as we can see from your recent REGISTER attempts your 3cx is not quite accurate with responses.
Here are our recent observations:
The first REGISTER from your end came as follows:
2019/10/15 22:47:16.512379 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA=",uri="sip:sip.au.didlogic.net:5060",response="8c66a5cd826b2cbe5553
8aaa7e3900",cnonce="f2272cbd33777276bc986fca73da9a9b",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
Please note the following argument:
nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA="
We've answered 401 Unauthorized, as the previous REGISTER has expired:
2019/10/15 22:47:16.513598 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.0c2e
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
WWW-Authenticate: Digest realm="sip.au.didlogic.net", nonce="XaZNoF2mTHS+WkIzbddf0PoWQgktRBLEkY/SXoA=", qop="auth"
Content-Length: 0
and we've provided you with the new nonce:
nonce="XaZNoF2mTHS+WkIzbddf0PoWQgktRBLEkY/SXoA="
Your 3CX has sent the second REGISTER attempt:
2019/10/15 22:47:17.512853 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA=",uri="sip:sip.au.didlogic.net:5060",response="8c66a5cd826b2cbe5553
8aaa7e3900",cnonce="f2272cbd33777276bc986fca73da9a9b",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
As you can find, your 3CX has sent the same nonce which is incorrect and violates the RFC:
nonce="XaZNn12mTHPsq7GAqX1XcXP6ZhYc3p8hkY/NWYA="
Then we answered with 401 Unauthorized second time with new nonce:
2019/10/15 22:47:17.514141 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---2b1a01725da5d777;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.0c2e
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 19 REGISTER
WWW-Authenticate: Digest realm="sip.au.didlogic.net", nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA=", qop="auth"
Content-Length: 0
nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA="
and then your end provides us with the correct credentials:
2019/10/15 22:47:17.571450 11.11.11.11:5060 -> 119.9.12.222:5060
REGISTER sip:sip.au.didlogic.net:5060 SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---55e7ce15e8487c26;rport
Max-Forwards: 70
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>
To: "0298765432"<sip:[email protected]:5060>
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 20 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE, UPDATE
Supported: replaces, timer
User-Agent: 3CXPhoneSystem 16.0.3.676 (676)
Authorization: Digest username="99999",realm="sip.au.didlogic.net",nonce="XaZNoV2mTHUdH4OGmnABCDtMJA/g31A9kY/VYYA=",uri="sip:sip.au.didlogic.net:5060",response="f274ea9da23e3a69aa6a
ef57a8f5ec",cnonce="929010be0df820c411f5bb40c1fc2820",nc=00000001,qop=auth,algorithm=MD5
Content-Length: 0
And we answer 200 OK:
2019/10/15 22:47:17.572946 119.9.12.222:5060 -> 11.11.11.11:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK-524287-1---55e7ce15e8487c26;rport=5060;received=11.11.11.11
To: "0298765432"<sip:[email protected]:5060>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9275
From: "0298765432"<sip:[email protected]:5060>;tag=d006f548
Call-ID: KlYCUYjoomx8dVfipO5fww..
CSeq: 20 REGISTER
Contact: <sip:[email protected]:5060;rinstance=8c28917ba30a4472>;expires=120
Content-Length: 0
Please note, that 3 incorrect REGISTER attempts in a row lead to the temporary IP blockage due to security reasons for 5 minutes.
Then IP will be released from the blacklist.
As far as we see from now, that what has happened. Please check your 3CX settings.
"
My understanding from their response is that 3CX is using the same NONCE after it has expired. Then gets blacklisted for 5 mins. Then uses correct NONCE and all is ok until next time. I presume that there is a setting in the SIP config that might assist with this.
Thank you for any assistance you can offer.