[asterisk-bugs] [Asterisk 0016425]: SIP qualify fails unless NAT is enabled

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 10 15:48:54 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16425 
====================================================================== 
Reported By:                hevad
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16425
Category:                   Channels/chan_sip/TCP-TLS
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 233730 
Request Review:              
====================================================================== 
Date Submitted:             2009-12-10 13:33 CST
Last Modified:              2009-12-10 15:48 CST
====================================================================== 
Summary:                    SIP qualify fails unless NAT is enabled
Description: 
Using a SIP device on the same subnet as asterisk fails to qualify unless
nat option is enabled. The device will register fine and can make outgoing
calls but will not receive calls.
====================================================================== 

---------------------------------------------------------------------- 
 (0115118) hevad (reporter) - 2009-12-10 15:48
 https://issues.asterisk.org/view.php?id=16425#c115118 
---------------------------------------------------------------------- 
Here's the log:

[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: 
<--- SIP read from TCP://192.168.16.158:15373 --->
REGISTER sip:ast2t.ottawa.cadlink.com SIP/2.0
Via: SIP/2.0/TCP
192.168.16.158:54282;branch=z9hG4bK-d8754z-4f102615d27d024d-1---d8754z-;rport
Max-Forwards: 70
Contact:
<sip:203 at 192.168.16.158:54282;rinstance=4ed5c72adb5290dd;transport=TCP>
To: "Test"<sip:203 at ast2t.ottawa.cadlink.com>
From: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=636b9213
Call-ID: NjEyYmM1Y2FkNmU2ZTk1YzNkMjRhNzBlNGEyMjc3YjU.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
User-Agent: X-Lite release 1103k stamp 53621
Content-Length: 0


<------------->
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: --- (12 headers 0 lines) ---
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: Sending to 192.168.16.158 :
15373 (NAT)
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: 
<--- Transmitting (no NAT) to 192.168.16.158:54282 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP
192.168.16.158:54282;branch=z9hG4bK-d8754z-4f102615d27d024d-1---d8754z-;received=192.168.16.158;rport=15373
From: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=636b9213
To: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=as76c94cf8
Call-ID: NjEyYmM1Y2FkNmU2ZTk1YzNkMjRhNzBlNGEyMjc3YjU.
CSeq: 1 REGISTER
Server: Asterisk PBX SVN-branch-1.6.1-r233730M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="ottawa.cadlink.com",
nonce="1ae04ccb"
Content-Length: 0


<------------>
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: Scheduling destruction of SIP
dialog 'NjEyYmM1Y2FkNmU2ZTk1YzNkMjRhNzBlNGEyMjc3YjU.' in 32000 ms (Method:
REGISTER)
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: 
<--- SIP read from TCP://192.168.16.158:15373 --->
REGISTER sip:ast2t.ottawa.cadlink.com SIP/2.0
Via: SIP/2.0/TCP
192.168.16.158:54282;branch=z9hG4bK-d8754z-ec6f76615021f52f-1---d8754z-;rport
Max-Forwards: 70
Contact:
<sip:203 at 192.168.16.158:54282;rinstance=4ed5c72adb5290dd;transport=TCP>
To: "Test"<sip:203 at ast2t.ottawa.cadlink.com>
From: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=636b9213
Call-ID: NjEyYmM1Y2FkNmU2ZTk1YzNkMjRhNzBlNGEyMjc3YjU.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
User-Agent: X-Lite release 1103k stamp 53621
Authorization: Digest
username="203",realm="ottawa.cadlink.com",nonce="1ae04ccb",uri="sip:ast2t.ottawa.cadlink.com",response="9ba223dcb8b69fb042bf70f13bd01dd7",algorithm=MD5
Content-Length: 0


<------------->
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: --- (13 headers 0 lines) ---
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: Sending to 192.168.16.158 :
54282 (no NAT)
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c:     -- Registered SIP '203'
at 192.168.16.158 port 54282
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: Reliably Transmitting (no
NAT) to 192.168.16.158:54282:
OPTIONS
sip:203 at 192.168.16.158:54282;rinstance=4ed5c72adb5290dd;transport=TCP
SIP/2.0
Via: SIP/2.0/TCP 192.168.16.62:5060;branch=z9hG4bK744a0c22;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown at a.cadlink.com>;tag=as4072bc43
To:
<sip:203 at 192.168.16.158:54282;rinstance=4ed5c72adb5290dd;transport=TCP>
Contact: <sip:Unknown at 192.168.16.62;transport=TCP>
Call-ID: 554a05216000166d157b8bde63c28c95 at a.cadlink.com
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX SVN-branch-1.6.1-r233730M
Date: Thu, 10 Dec 2009 21:44:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


---
[Dec 10 16:44:00] WARNING[15565] chan_sip.c: sip_xmit of 0x1ce52e80 (len
648) to 192.168.16.158:54282 returned -2: Illegal seek
[Dec 10 16:44:00] VERBOSE[15565] chan_sip.c: 
<--- Transmitting (no NAT) to 192.168.16.158:54282 --->
SIP/2.0 200 OK
Via: SIP/2.0/TCP
192.168.16.158:54282;branch=z9hG4bK-d8754z-ec6f76615021f52f-1---d8754z-;received=192.168.16.158;rport=15373
From: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=636b9213
To: "Test"<sip:203 at ast2t.ottawa.cadlink.com>;tag=as76c94cf8
Call-ID: NjEyYmM1Y2FkNmU2ZTk1YzNkMjRhNzBlNGEyMjc3YjU.
CSeq: 2 REGISTER
Server: Asterisk PBX SVN-branch-1.6.1-r233730M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Expires: 3600
Contact:
<sip:203 at 192.168.16.158:54282;rinstance=4ed5c72adb5290dd;transport=TCP>;expires=3600
Date: Thu, 10 Dec 2009 21:44:00 GMT
Content-Length: 0


<------------> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-10 15:48 hevad          Note Added: 0115118                          
======================================================================




More information about the asterisk-bugs mailing list