Hi,debanjanbasu,
I am tring to configure Asterisk12 + PJSIP + sipML5.I use sipML5 to REGISTER,but every time server return “SIP/2.0 401 Unauthorized”.
I think my configs possiblly have some mistakes.Could you share your configs ?I really need your help.
Signals between sipML5 and Asterisk:
[code]*CLI> == WebSocket connection from ‘192.168.1.134:51060’ for protocol ‘sip’ accepted using version ‘13’
<— Received SIP request (686 bytes) from WS:192.168.1.134:51060 —>
REGISTER sip:192.168.1.131 SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKSlB1gH00U2ugCJlvEtOMLwM63v6vf1cw;rport
From: "zsk425"sip:103@192.168.1.131;tag=OhvCShq8av9Z0096oeGt
To: “zsk425"sip:103@192.168.1.131
Contact: “zsk425"sip:103@df7jal23ls0d.invalid;rtcweb-breaker=yes;transport=ws;expires=200;click2call=no;+g.oma.sip-im;+audio;language=“en,fr"
Call-ID: 20c0d36d-009a-941c-199b-8b24d035f6b3
CSeq: 32602 REGISTER
Content-Length: 0
Max-Forwards: 70
Authorization: Digest username=“103”,realm=“192.168.1.131”,nonce=””,uri=“sip:192.168.1.131”,response=”"
User-Agent: IM-client/OMA1.0 sipML5-v1.2014.04.18
Organization: Doubango Telecom
Supported: path
<— Transmitting SIP response (554 bytes) to WS:192.168.1.134:51060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;received=192.168.1.134;branch=z9hG4bKSlB1gH00U2ugCJlvEtOMLwM63v6vf1cw
Call-ID: 20c0d36d-009a-941c-199b-8b24d035f6b3
From: “zsk425” sip:103@192.168.1.131;tag=OhvCShq8av9Z0096oeGt
To: “zsk425” sip:103@192.168.1.131;tag=z9hG4bKSlB1gH00U2ugCJlvEtOMLwM63v6vf1cw
CSeq: 32602 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1399521524/9341808f20764ba9508c12b5493bfe70”,opaque=“10a3a45248d69dee”,algorithm=md5,qop="auth"
Server: Asterisk PBX 12.2.0
Content-Length: 0
<— Received SIP request (859 bytes) from WS:192.168.1.134:51060 —>
REGISTER sip:192.168.1.131 SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKayZTTdXpzQdh5HatBnDidPpbmvRBt1UW;rport
From: "zsk425"sip:103@192.168.1.131;tag=OhvCShq8av9Z0096oeGt
To: "zsk425"sip:103@192.168.1.131
Contact: "zsk425"sip:103@df7jal23ls0d.invalid;rtcweb-breaker=yes;transport=ws;expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"
Call-ID: 20c0d36d-009a-941c-199b-8b24d035f6b3
CSeq: 32603 REGISTER
Content-Length: 0
Max-Forwards: 70
Authorization: Digest username=“103”,realm=“asterisk”,nonce=“1399521524/9341808f20764ba9508c12b5493bfe70”,uri=“sip:192.168.1.131”,response=“509a69ca45054b5c044a43a4d012640a”,algorithm=md5,cnonce=“e28697c975121af9c93dd03733633581”,opaque=“10a3a45248d69dee”,qop=auth,nc=00000001
User-Agent: IM-client/OMA1.0 sipML5-v1.2014.04.18
Organization: Doubango Telecom
Supported: path
<— Transmitting SIP response (554 bytes) to WS:192.168.1.134:51060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;received=192.168.1.134;branch=z9hG4bKayZTTdXpzQdh5HatBnDidPpbmvRBt1UW
Call-ID: 20c0d36d-009a-941c-199b-8b24d035f6b3
From: “zsk425” sip:103@192.168.1.131;tag=OhvCShq8av9Z0096oeGt
To: “zsk425” sip:103@192.168.1.131;tag=z9hG4bKayZTTdXpzQdh5HatBnDidPpbmvRBt1UW
CSeq: 32603 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1399521524/9341808f20764ba9508c12b5493bfe70”,opaque=“320e119b456169ff”,algorithm=md5,qop="auth"
Server: Asterisk PBX 12.2.0
Content-Length: 0
[/code]