[Asterisk-bsd] Asterisk register problem

Kim Esben Jørgensen kej at galnet.as
Thu Aug 4 10:01:14 CDT 2005


Hi

Im having problems with Audiocodes MP-124 and Asterisk. When I try to 
register I get stale nonce errors.
Asterisk is CVS HEAD 1/8-2005. There are no problems with 1.0.9, but I 
would like to try realtime.
The MP-124 runs firmware version 4.40.227.417.

I dont understand this line.
Why is there two " after the nonce value? And can that give problems.
Authorization: Digest 
username="TESTKONTO",realm="galnet.dk",nonce="515ef3de" 
",uri="sip:galnet.dk",algorithm=MD5,response="64d2aff4a108dc9b70acc98adc201c36"

I've tried with both pedantic=yes and no.

And the box runs FreeBSD 5.4.
 
Any sugestions?


Sip debug i register sequence.
<-- SIP read from XXX.XXX.XXX.200:5060:
REGISTER sip:galnet.dk SIP/2.0
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310214971
Max-Forwards: 70
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 165 REGISTER
Contact: <sip:TESTKONTO at XXX.XXX.XXX.200>;expires=180
Supported: em,timer,replaces,path
Allow: 
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.40.227.417
Content-Length: 0

--- (13 headers 0 lines)---
Using latest request as basis request
Sending to XXX.XXX.XXX.200 : 5060 (non-NAT)
Transmitting (no NAT) to XXX.XXX.XXX.200:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310214971
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 165 REGISTER
User-Agent: Galnet PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: <sip:TESTKONTO at XXX.XXX.XXX.202>
Content-Length: 0


---
Transmitting (no NAT) to XXX.XXX.XXX.200:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310214971
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>;tag=as67f62694
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 165 REGISTER
User-Agent: Galnet PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: <sip:TESTKONTO at XXX.XXX.XXX.202>
WWW-Authenticate: Digest realm="galnet.dk", nonce="515ef3de"
Content-Length: 0


---
Scheduling destruction of call '374897482482005151046 at XXX.XXX.XXX.200' 
in 15000 ms
kej_laptop*CLI>
<-- SIP read from XXX.XXX.XXX.200:5060:
REGISTER sip:galnet.dk SIP/2.0
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310264107
Max-Forwards: 70
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 166 REGISTER
Authorization: Digest 
username="TESTKONTO",realm="galnet.dk",nonce="515ef3de" 
",uri="sip:galnet.dk",algorithm=MD5,response="64d2aff4a108dc9b70acc98adc201c36"
Contact: <sip:TESTKONTO at XXX.XXX.XXX.200>;expires=180
Supported: em,timer,replaces,path
Allow: 
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.40.227.417
Content-Length: 0

--- (14 headers 0 lines)---
Using latest request as basis request
Sending to XXX.XXX.XXX.200 : 5060 (non-NAT)
Transmitting (no NAT) to XXX.XXX.XXX.200:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310264107
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 166 REGISTER
User-Agent: Galnet PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: <sip:TESTKONTO at XXX.XXX.XXX.202>
Content-Length: 0


---
Aug  4 16:53:17 NOTICE[12147]: chan_sip.c:5617 check_auth: stale nonce 
received from '<sip:TESTKONTO at galnet.dk>'
Transmitting (no NAT) to XXX.XXX.XXX.200:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP XXX.XXX.XXX.200;branch=z9hG4bKac1310264107
From: <sip:TESTKONTO at galnet.dk>;tag=1c1310210267
To: <sip:TESTKONTO at galnet.dk>;tag=as67f62694
Call-ID: 374897482482005151046 at XXX.XXX.XXX.200
CSeq: 166 REGISTER
User-Agent: Galnet PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: <sip:TESTKONTO at XXX.XXX.XXX.202>
WWW-Authenticate: Digest realm="galnet.dk", nonce="30dc9d8e"
Content-Length: 0


---
Scheduling destruction of call '374897482482005151046 at XXX.XXX.XXX.200' 
in 15000 ms


More information about the Asterisk-BSD mailing list