[asterisk-bugs] [Asterisk 0018064]: Bad assumption in ast_ouraddrfor in chan_sip regarding extern IP and IPv6
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Nov 1 11:09:46 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18064
======================================================================
Reported By: oej
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18064
Category: Channels/chan_sip/IPv6
Reproducibility: have not tried
Severity: block
Priority: normal
Status: acknowledged
Asterisk Version: 1.8.0-rc2
JIRA: SWP-2309
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-09-28 00:48 CDT
Last Modified: 2010-11-01 11:09 CDT
======================================================================
Summary: Bad assumption in ast_ouraddrfor in chan_sip
regarding extern IP and IPv6
Description:
The code says:
if (ast_sockaddr_is_ipv6(&theirs)) {
if (localaddr && !ast_sockaddr_isnull(externaddr)) {
ast_log(LOG_WARNING, "Address remapping activated
in sip.conf "
"but we're using IPv6, which doesn't need
it. Please "
"remove \"localnet\" and/or \"externaddr\"
settings.\n");
}
Which is definitely wrong. If you have "::" as a bind address, the IPv6
socket *WILL* listen to IPv4 and the externip/localnet settings might be
needed on the IPv4 side of life.
======================================================================
----------------------------------------------------------------------
(0128500) mmichelson (administrator) - 2010-11-01 11:09
https://issues.asterisk.org/view.php?id=18064#c128500
----------------------------------------------------------------------
I may be misinterpreting the problem but I think you might be mistaken. The
if statement is checking whether "theirs" is IPv6, not "us." If theirs is
an IPv6 address, doesn't that guarantee that we'll be using IPv6 as well
and so no such remapping is necessary?
Or does the bug apply to a situation where the localnet uses IPv4 but the
externip is IPv6?
Issue History
Date Modified Username Field Change
======================================================================
2010-11-01 11:09 mmichelson Note Added: 0128500
======================================================================
More information about the asterisk-bugs
mailing list