[asterisk-bugs] [Asterisk 0017737]: [patch] sip.conf lacks documentation for IPv6

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 6 17:00:31 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17737 
====================================================================== 
Reported By:                oej
Assigned To:                svnbot
====================================================================== 
Project:                    Asterisk
Issue ID:                   17737
Category:                   Channels/chan_sip/IPv6
Reproducibility:            have not tried
Severity:                   block
Priority:                   normal
Status:                     closed
Target Version:             1.8.0
Asterisk Version:           1.8.0-beta2 
JIRA:                       SWP-1970 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-07-28 10:29 CDT
Last Modified:              2010-08-06 17:00 CDT
====================================================================== 
Summary:                    [patch] sip.conf lacks documentation for IPv6
Description: 
There is only documentation for IPv6 based ACLs, but not how to configure,
what you can do and what we don't support. This needs to be documented
clearly. 

Questions like these needs to be answered:
- Can I bind to multiple IPv4 and IPv6 addresses?
- Can I define both an IPv4 and IPv6 address for a device?
- How does Asterisk handle the case of dual records (a/aaaa) in host name
lookups?
- How does Asterisk handle SRV records with hosts that only has IPv4 or
IPv6 in different preferences?
- Does STUN support IPv6?
- Can I specify externIP both for IPv4 and IPv6?
====================================================================== 

---------------------------------------------------------------------- 
 (0125669) pabelanger (manager) - 2010-08-06 17:00
 https://issues.asterisk.org/view.php?id=17737#c125669 
---------------------------------------------------------------------- 
Re-opening: We should add some information about how asterisk will bind
IPv4 and IPv6 to a single socket.  I assumed asterisk would be listening to
both udp 0.0.0.0:5060 and udp6 :::5060 when I ran netstat, however that was
not the case.

---
<pabelanger> Hmm, cannot bind asterisk to both IPv4 and IPv6 at the same
time. Tried udpbindaddr=:: but no luck
<kpfleming> did you actually try contacting it over IPv4, or are you
assuming that from netstat (or similar) output?
<pabelanger> kpfleming: yes, looking at netstat
<kpfleming> that is probably misleading
<pabelanger> Hmm
<pabelanger> let me fire up a call
<kpfleming> it only opens a single socket, but the socket accepts both
IPv4 and IPv6 packets
<pabelanger> I was not aware that was possible...  Is there a benefit to
only opening one socket?
<kpfleming> yes... the code only supports one socket :-)
<pabelanger> hehe
<kpfleming> changing chan_sip to support multiple UDP sockets is a huge
job
<kpfleming> so it accepts IPv4 connections on that socket, and the
addresses appear in chan-sip as IPv4-mapped IPv6 addresses
<pabelanger> Ok, thanks for the explanation.  Will see about documenting
that some where, in-case people do the same thing I just did via netstat
<pabelanger> IPv4 worked btw 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-06 17:00 pabelanger     Note Added: 0125669                          
======================================================================




More information about the asterisk-bugs mailing list