[asterisk-bugs] [Asterisk 0017834]: [patch] IPv6: System configured for only IPv4 tries sending to IPv6

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 25 16:12:41 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17834 
====================================================================== 
Reported By:                oej
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17834
Category:                   Channels/chan_sip/IPv6
Reproducibility:            always
Severity:                   minor
Priority:                   high
Status:                     acknowledged
Target Version:             1.8.0
Asterisk Version:           1.8.0-beta3 
JIRA:                       SWP-2033 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-11 05:13 CDT
Last Modified:              2010-08-25 16:12 CDT
====================================================================== 
Summary:                    [patch] IPv6: System configured for only IPv4 tries
sending to IPv6
Description: 
Running on a dual stack system, with a bind address set to 0.0.0.0
(indicating only IPv4 support), placing a call to a domain that only
resolves into an IPv6 server, Asterisk tries to send anyway with poor
results. This indicates a few things to me:
- Something is wrong in the code, since it doesn't act as documented in
sip.conf. (bindaddr 0.0.0.0 should only get IPv4 support)
- Many log messages are wrong
- Again, like in another issue, Asterisk tries sending SIP messages to a
NULL address. This is a bug in itself.

I have modified the host names in the log, can provide programmer with
proper addresses for testing.
====================================================================== 

---------------------------------------------------------------------- 
 (0126339) qwell (administrator) - 2010-08-25 16:12
 https://issues.asterisk.org/view.php?id=17834#c126339 
---------------------------------------------------------------------- 
Punt.

After considering this a bit, I believe this is far more complicated than
I'm up to.  In order to do this, it seems like you'd need some global
variable to say whether you do/do not want to try IPv6 addresses - and
you'd have to check this variable in a lot of places (pretty much anywhere
that would initiate a connection).  ast_ouraddrfor() is doing exactly what
it should - it's finding the address that we would be sending a packet
from, if we were to send one. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-25 16:12 qwell          Note Added: 0126339                          
======================================================================




More information about the asterisk-bugs mailing list