Hi
Using Asterisk Ver 18.7.1 with pjsip.
Using either
auth_type = userpass or auth_type = md5 in pjsip.conf
when my Yealink phones try 2nd REGISTER after 401 Unauthorized
with the challenge:
v: SIP/2.0/UDP 192.168.50.83:5063;rport=5063;received=192.168.50.83;branch=z9hG4bK1751975417
i: 484307774@192.168.50.83
f: "Fabrice" <sip:Fabrice@sip.escapetravel.pt>;tag=804731842
t: "Fabrice" <sip:Fabrice@sip.escapetravel.pt>;tag=z9hG4bK1751975417
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm="escapetravel.pt",nonce="1635263346/7d75781cb9eca6c4e21ee28225e6d33e",opaque="231411a7237165f8",algorithm=md5,qop="auth"
Server: ET Asterisk PBX
l: 0
REGISTER sip:sip.escapetravel.pt SIP/2.0
Via: SIP/2.0/UDP 192.168.50.83:5063;rport;branch=z9hG4bK425602801
From: “Fabrice” sip:Fabrice@sip.escapetravel.pt;tag=804731842
To: “Fabrice” sip:Fabrice@sip.escapetravel.pt
Call-ID: 484307774@192.168.50.83
CSeq: 2 REGISTER
Contact: sip:Fabrice@192.168.50.83:5063
Authorization: Digest username=“Fabrice”, realm=“escapetravel.pt”, nonce=“1635263346/7d75781cb9eca6c4e21ee28225e6d33e”, uri=“sip:sip.escapetravel.pt”, response=“ebddb4076215a67a05e6f317adda1b81”, algorithm=MD5, cnonce=“0a4f113b”, opaque=“231411a7237165f8”, qop=auth, nc=00000001
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T20P 9.50.0.50
Expires: 3600
Content-Length: 0
They receive 501 Not Implemented.
This PJSIP is kind of nightmare. After spending days on seetling just the Asterisk startup now I am stuck.
chan_sip is 1,2,3 ready to go, everything works, on the first.
Looks like PJSIP is … “Complexity bloat” :-((
Be aware of this. If it goes like this and chan_sip out fom future releases a lot of us will go away from Asterisk or just maintain old releases.