[asterisk-bugs] [Asterisk 0014943]: SIP INVITE contains external IP causing 404 Not Found on the Cisco 9740

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 21 17:28:06 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14943 
====================================================================== 
Reported By:                sverre
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14943
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-20 18:52 CDT
Last Modified:              2009-08-21 17:28 CDT
====================================================================== 
Summary:                    SIP INVITE contains external IP causing 404 Not
Found on the Cisco 9740
Description: 
Some routers implement <a
href='http://www.voip-info.org/wiki/view/Routers+SIP+ALG'>SIP ALG</a>,
however as noted in the article only some of them modify the VIA header -
while all modify the CONTACT header.

Furthermore, some routers that do not modify the CONTACT header, also do
not modify the incoming INVITE header on an incoming call, even through
they do route the INVITE to the correct IP.

In such a scenario, the outbound REGISTER leaves the phone with VIA
192.168.0.15 and CONTACT 192.168.0.15, then arrives at the server with VIA
192.168.0.15 and CONTACT external-ip. The INVITE is therefore sent to the
external ip (correct), but with a Request-Line that ALSO contains the
external-ip.

In some SIP ALG implementations, this request-line is rewritten and all is
well, but in some it is NOT re-written, and therefore the phone replies
with a 404 Not Found. This is a particular problem when using the Cisco
7940 in combination with the Billion Bipac 7402XL, though likely affects
similar models of both phone and router.

This behavior could be avoided if Asterisk could be instructed to use the
contents of the VIA registration header in the construction of the INVITE,
rather than CONTACT registration header.

I will attach 4 pcap files containing the phone and server side of the
conversation in both a working (D-Link DSL-502T) and non-working (Billion
BiPac 7402XL) scenarios.
====================================================================== 

---------------------------------------------------------------------- 
 (0109497) qwell (administrator) - 2009-08-21 17:28
 https://issues.asterisk.org/view.php?id=14943#c109497 
---------------------------------------------------------------------- 
Please contact your router vendor.  There are well documented issues with
their ALG implementation. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-21 17:28 qwell          Note Added: 0109497                          
2009-08-21 17:28 qwell          Status                   new => resolved     
2009-08-21 17:28 qwell          Resolution               open => fixed       
2009-08-21 17:28 qwell          Assigned To               => qwell           
2009-08-21 17:28 qwell          Status                   resolved => closed  
======================================================================




More information about the asterisk-bugs mailing list