401 apparently in authentication loop, cannot authenticate

342 views
Skip to first unread message

anshk...@gmail.com

unread,
Nov 10, 2020, 2:29:55 PM11/10/20
to SIP.js

SIP.js is continously sending REGISTER packer after receiving 401 Unauthorised. It leads to generate loops. Can we break this loop by defining any parameters?


[Wed Nov 11 2020 00:43:14.878]  LOG      Wed Nov 11 2020 00:43:13 GMT+0530 (IST) | sip.transport | sending WebSocket message:


REGISTER sip:sip.server.net SIP/2.0

Via: SIP/2.0/WSS 9ojiij8aamio.invalid;branch=z9hG4bK1813570

To: "1019" <sip:a61ae308b9...@sip.server.net>

From: "1019" <sip:a61ae308b9...@sip.server.net>;tag=u4j6e2ssn1

CSeq: 1779 REGISTER

Call-ID: qaltn44cianps78c67noc2

Max-Forwards: 70

Authorization: Digest algorithm=MD5, username="a61ae308b95c507d-1019", realm="sip.server.net", nonce="5faae66800009b71407a3f38564da9784be78a6f1f425634", uri="sip:sip.server.net", response="5c859c88e7dbbe3179237602a9d2dcd6", qop=auth, cnonce="lfj4jnvrq031", nc=00000001

Contact: <sip:tkun...@9ojiij8aamio.invalid;transport=wss>;instance-id=a61ae308b9...@sip.server.net;expires=3600

Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER

Supported: outbound, path, gruu

User-Agent: Sipphone 1.0.3

Content-Length: 0


[Wed Nov 11 2020 00:43:15.314]  LOG      Wed Nov 11 2020 00:43:13 GMT+0530 (IST) | sip.transport | received WebSocket text message:


SIP/2.0 401 Unauthorized

Via: SIP/2.0/WSS 9ojiij8aamio.invalid;received=103.43.249.124;branch=z9hG4bK1813570

To: "1019" <sip:a61ae308b9...@sip.server.net>;tag=00bd.84d3465bb36c3b356013305c50661e43

From: "1019" <sip:a61ae308b9...@sip.server.net>;tag=u4j6e2ssn1

CSeq: 1779 REGISTER

Call-ID: qaltn44cianps78c67noc2

WWW-Authenticate: Digest realm="sip.server.net", nonce="5faae66800009b728d3b177f40333770e3b758da83cbcd5c", qop="auth,auth-int"

Server: Sip Server

Content-Length: 0


[Wed Nov 11 2020 00:43:15.320]  WARN     Wed Nov 11 2020 00:43:13 GMT+0530 (IST) | sip.user-agent-client | 401 apparently in authentication loop, cannot authenticate

anshk...@gmail.com

unread,
Dec 7, 2020, 11:55:00 PM12/7/20
to SIP.js
This seems resolved in 0.17.1 version. I have upgraded to latest version to check whether this issue still reproducible or not but it's resolved in latest version.
Reply all
Reply to author
Forward
0 new messages