[asterisk-bugs] [Asterisk 0017663]: [patch] IPv6: get_refer_info

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 19 09:42:40 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17663 
====================================================================== 
Reported By:                oej
Assigned To:                mmichelson
====================================================================== 
Project:                    Asterisk
Issue ID:                   17663
Category:                   Channels/chan_sip/IPv6
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                       SWP-1864 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 277027 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-16 07:45 CDT
Last Modified:              2010-07-19 09:42 CDT
====================================================================== 
Summary:                    [patch] IPv6: get_refer_info
Description: 
14207                 domain = ptr;
14208                 if ((ptr = strchr(domain, ':'))) {      /* Remove
:port */
14209                         *ptr = '\0';
14210                 }
14211 


Another case where we just search for : to separate host and port
====================================================================== 

---------------------------------------------------------------------- 
 (0124696) mmichelson (administrator) - 2010-07-19 09:42
 https://issues.asterisk.org/view.php?id=17663#c124696 
---------------------------------------------------------------------- 
This problem is quite a bit deeper than the problem reported here. The
problem is that the use of SIP domains has had a big behavior change here.

Prior to the IPv6 merge, SIP domains were purely either host names or IP
addresses. Now, there are several cases in the code where domains are added
with a port appended to them. Examples include the auto_sip_domains section
in reload_config(). Another example is in most cases where the
refer_to_domain is set. In most of these cases, the port is not stripped
off at all before setting the value. This value is then used as an argument
for check_sip_domain(). In the case oej found, the port is attempted to be
stripped off, but the method is flawed when dealing with IPv6 addresses. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-19 09:42 mmichelson     Note Added: 0124696                          
======================================================================




More information about the asterisk-bugs mailing list