[Asterisk-Users] Asterisk not populating nonce count
Mark Moody
mark at moody.cbeyond.net
Wed Jul 7 06:34:39 MST 2004
Trying to register the Asterisk to the Cisco BTS 10200. The
BTS challenges the REGISTER with a 401 Unathorized and
sets “qop=auth” in the WWW-Authenticate header.
The Asterisk should reply with a nonce-count in the
Authorization header of the new REGISTER but it does not send
this field.
What Asterisk configuration will force the PBX to send the NC
value?
Thanks,
Mark
Reliably Transmitting:
REGISTER sip:customer2.lab2.cbeyond.net SIP/2.0
Via: SIP/2.0/UDP 90.0.4.57:5060;branch=z9hG4bK3483fca1
From:
<sip:6783975000 at customer2.lab2.cbeyond.net>;tag=as6c243000
To: <sip:6783975000 at customer2.lab2.cbeyond.net>
Call-ID: 6e58367c4fbd72086c3a4a104e11c709 at 90.0.4.57
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Expires: 160
Contact: <sip:6783975000 at 90.0.4.57>
Event: registration
Content-Length: 0
(no NAT) to 90.0.4.76:5060
shitbrick*CLI>
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
90.0.4.57:5060;branch=z9hG4bK3483fca1;received=90.0.4.57
From:
<sip:6783975000 at customer2.lab2.cbeyond.net>;tag=as6c243000
To:
<sip:6783975000 at customer2.lab2.cbeyond.net>;tag=1_1102_t12492_
6472
Call-ID: 6e58367c4fbd72086c3a4a104e11c709 at 90.0.4.57
CSeq: 102 REGISTER
WWW-Authenticate: Digest realm="customer2.lab2.cbeyond.net",
nonce="bdcaa6ccd20111e818ecdba14d97e283", algorithm=MD5,
qop="auth"
Content-Length: 0
8 headers, 0 lines
12 headers, 0 lines
Reliably Transmitting:
REGISTER sip:customer2.lab2.cbeyond.net SIP/2.0
Via: SIP/2.0/UDP 90.0.4.57:5060;branch=z9hG4bK3483fca1
From:
<sip:6783975000 at customer2.lab2.cbeyond.net>;tag=as6c243000
To: <sip:6783975000 at customer2.lab2.cbeyond.net>
Call-ID: 6e58367c4fbd72086c3a4a104e11c709 at 90.0.4.57
CSeq: 103 REGISTER
User-Agent: Asterisk PBX
Authorization: Digest username="6783975000",
realm="customer2.lab2.cbeyond.net", algorithm="MD5",
uri="sip:customer2.lab2.cbeyond.net",
nonce="bdcaa6ccd20111e818ecdba14d97e283",
response="962a1259e5b2afaf18289aeaf5427485", opaque=""
Expires: 160
Contact: <sip:6783975000 at 90.0.4.57>
Event: registration
Content-Length: 0
(no NAT) to 90.0.4.76:5060
Sip read:
SIP/2.0 400 Bad Request
Via: SIP/2.0/UDP
90.0.4.57:5060;branch=z9hG4bK3483fca1;received=90.0.4.57
From:
<sip:6783975000 at customer2.lab2.cbeyond.net>;tag=as6c243000
To: <sip:6783975000 at customer2.lab2.cbeyond.net>
Call-ID: 6e58367c4fbd72086c3a4a104e11c709 at 90.0.4.57
CSeq: 103 REGISTER
Content-Length: 0
MARK G. MOODY
Network Architecture
More information about the asterisk-users
mailing list