Hi everyone
There is a strange thing I’ve noticed looking through the asterisk traffic. Registration of an ATA succeeds on the second attempt. This is what I’m observing:
ATA: REGISTER
Asterisk: 100 Trying
Asterisk: 401 Unauthorized
ATA: REGISTER
Asterisk: 100 Trying
Asterisk: 200 OK
If someone has experience in SIP, please tell me if it is normal behavior. If not, what should I do to make the devices register/reregister from the first attempt.
Thanks in advance.
P.S. Part of tcpdump trace
21:30:23.988362 IP 10.58.8.40.5060 > 192.168.1.4.5060: SIP, length: 676
E…?..
:.(…u.REGISTER sip:192.168.1.4 SIP/2.0
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 767 REGISTER
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b76-43fed7b5
Max-Forwards: 70
Supported: 100rel
User-Agent: ARRIS-TM501B release v.05.00.0X SN/0015960D94A9
Contact: 951190661sip:951190661@10.58.8.40:5060
Authorization: Digest username=“951190661”,realm=“asterisk”,nonce=“71a42d03”,uri=“sip:192.168.1.4”,response=“4feefea8d61bfe319c1dbd6687b5c525”
,algorithm=MD5
Allow: INVITE,ACK,BYE,CANCEL,NOTIFY,PRACK,UPDATE
Content-Length: 0
21:30:23.988629 IP 192.168.1.4.5060 > 10.58.8.40.5060: SIP, length: 478
E…@…E…
:.(…SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b76-43fed7b5;received=10.58.8.40
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 767 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: sip:951190661@192.168.1.4
Content-Length: 0
21:30:23.988662 IP 192.168.1.4.5060 > 10.58.8.40.5060: SIP, length: 537
E…5…@… …
:.(…!..SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b76-43fed7b5;received=10.58.8.40
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4;tag=as783c5ff5
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 767 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="5fe98833"
Content-Length: 0
21:30:24.015161 IP 10.58.8.40.5060 > 192.168.1.4.5060: SIP, length: 676
E…?..
:.(…SREGISTER sip:192.168.1.4 SIP/2.0
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 768 REGISTER
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b8f-60f83f9d
Max-Forwards: 70
Supported: 100rel
User-Agent: ARRIS-TM501B release v.05.00.0X SN/0015960D94A9
Contact: 951190661sip:951190661@10.58.8.40:5060
Authorization: Digest username=“951190661”,realm=“asterisk”,nonce=“5fe98833”,uri=“sip:192.168.1.4”,response=“986d3716a27c3cd7605557fa22ff55d1”
,algorithm=MD5
Allow: INVITE,ACK,BYE,CANCEL,NOTIFY,PRACK,UPDATE
Content-Length: 0
21:30:24.015267 IP 192.168.1.4.5060 > 10.58.8.40.5060: SIP, length: 478
E…@…C…
:.(…:SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b8f-60f83f9d;received=10.58.8.40
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 768 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: sip:951190661@192.168.1.4
Content-Length: 0
21:30:24.016495 IP 192.168.1.4.5060 > 10.58.8.40.5060: SIP, length: 556
E…H…@…
:.(…4.?SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.58.8.40:5060;branch=z9hG4bK-70bf-1b86b8f-60f83f9d;received=10.58.8.40
From: 951190661sip:951190661@192.168.1.4;tag=94bcf8a8-a3a0828-13c4-ab-c51aaa4-ab
To: 951190661sip:951190661@192.168.1.4;tag=as783c5ff5
Call-ID: 94bccd00-a3a0828-13c4-ab-4247dacf-ab
CSeq: 768 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Expires: 120
Contact: sip:951190661@10.58.8.40:5060;expires=120
Date: Fri, 19 Oct 2007 19:30:24 GMT
Content-Length: 0