[Asterisk-Dev] REGISTER without contact header

Chintan Thakker cthakker at ipnetfusion.com
Wed Jul 2 13:18:12 MST 2003


Hi,
 Consider a scenario in which a user requests contact list by sending a 
REGISTER without providing a Contact and Expires header. The server does 
not respond. Attached below is the trace with sip debug on.

 Thanks,

Chintan

------- Start Asterix Trace --------

*CLI>
Sip read:
REGISTER sip:192.1.2.17 SIP/2.0
Via: SIP/2.0/UDP 192.1.2.88:5060;branch=z9hG4bK1457
Max-Forwards: 70
From: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=1457
To: 9727619271 <sip:9727619271 at 192.1.2.17>
Call-ID: 1457 at 192.1.2.88
CSeq: 1 REGISTER
Content-Length: 0


8 headers, 0 lines
Interface is eth0
IP Address is 192.1.2.17
Using latest request as basis request
Sending to 192.1.2.88 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.1.2.88:5060;branch=z9hG4bK1457
From: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=1457
To: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=as68ee7ac1
Call-ID: 1457 at 192.1.2.88
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Contact: <sip:9727619271 at 192.1.2.17>
Content-Length: 0


 to 192.1.2.88:5060
Transmitting (no NAT):
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.1.2.88:5060;branch=z9hG4bK1457
From: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=1457
To: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=as68ee7ac1
Call-ID: 1457 at 192.1.2.88
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Contact: <sip:9727619271 at 192.1.2.17>
Proxy-Authenticate: Digest realm="asterisk", nonce="454f0c4c"
Content-Length: 0


 to 192.1.2.88:5060
Sip read:
REGISTER sip:192.1.2.17 SIP/2.0
Via: SIP/2.0/UDP 192.1.2.88:5060;branch=z9hG4bK1234abcd
Max-Forwards: 70
From: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=1457
To: 9727619271 <sip:9727619271 at 192.1.2.17>
Call-ID: 1457 at 192.1.2.88
CSeq: 1 REGISTER
Authorization: Digest 
username="9727619271",realm="asterisk",nonce="454f0c4c",uri="sip:192.1.2.17",algorithm=MD5,cnonce="454f0c4c"
Content-Length: 0
Proxy-Authorization: Digest 
username="9727619271",realm="asterisk",nonce="454f0c4c",uri="sip:192.1.2.17",response="e4e925dc4674debf416e7fd4e6ff615f",algorithm=MD5


10 headers, 0 lines
Using latest request as basis request
Sending to 192.1.2.88 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.1.2.88:5060;branch=z9hG4bK1234abcd
From: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=1457
To: 9727619271 <sip:9727619271 at 192.1.2.17>;tag=as68ee7ac1
Call-ID: 1457 at 192.1.2.88
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Contact: <sip:9727619271 at 192.1.2.17>
Content-Length: 0


 to 192.1.2.88:5060
NOTICE[40966]: File chan_sip.c, Line 2667 (parse_contact): '' is not a 
valid SIP contact (missing sip:) trying to use anyway
WARNING[40966]: File chan_sip.c, Line 2695 (parse_contact): Invalid host ''
WARNING[40966]: File chan_sip.c, Line 2989 (register_verify): Failed to 
parse contact info

------- End Asterix Trace --------




More information about the asterisk-dev mailing list