[asterisk-bugs] [JIRA] (ASTERISK-18032) [patch] - IPv6 and IPv4 NAT not working
Valentin Vidić (JIRA)
noreply at issues.asterisk.org
Tue Mar 31 10:42:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-18032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225726#comment-225726 ]
Valentin Vidić edited comment on ASTERISK-18032 at 3/31/15 10:41 AM:
---------------------------------------------------------------------
I've updated the nat and localnet setting but it doesn't seem to have any affect. Address {{192.168.0.7}} still appears in SDP and the call eventually fails.
Adding some additional logging shows that the first if condition matches for incoming IPv4 requests when udpbindaddr=::
{noformat}
if (ast_sockaddr_is_ipv6(&theirs)) {
ast_log(LOG_NOTICE, "NAT: peer address is ipv6");
if (localaddr && !ast_sockaddr_isnull(&externaddr) && !ast_sockaddr_is_any(&bindaddr)) {
ast_log(LOG_WARNING, "Address remapping activated in sip.conf "
"but we're using IPv6, which doesn't need it. Please "
{noformat}
Is this expected behaviour?
{noformat}
[Mar 29 23:42:24] NOTICE[2850] chan_sip.c: NAT: peer address is ipv6
[Mar 29 23:42:24] NOTICE[2850] chan_sip.c: NAT: want_remap is 0
[Mar 29 23:42:24] NOTICE[2850] chan_sip.c: NAT: B peer is 212.15.179.125:5060
{noformat}
was (Author: vvidic):
I've updated the nat and localnet setting but it doesn't seem to have any affect. Address {{192.168.0.7}} still appears in SDP and the call eventually fails.
Adding some additional logging shows that the first if condition matches for incoming IPv4 requests when udpbindaddr=::
{noformat}
if (ast_sockaddr_is_ipv6(&theirs)) {
if (localaddr && !ast_sockaddr_isnull(&externaddr) && !ast_sockaddr_is_any(&bindaddr)) {
ast_log(LOG_WARNING, "Address remapping activated in sip.conf "
"but we're using IPv6, which doesn't need it. Please "
{noformat}
Is this expected behaviour?
> [patch] - IPv6 and IPv4 NAT not working
> ---------------------------------------
>
> Key: ASTERISK-18032
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-18032
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/IPv6
> Affects Versions: 1.8.3
> Environment: AsteriskNOW 1.7.1
> CentOS 5.6
> Asterisk 1.8.3.3
> FreePBX 2.9
> Reporter: Christoph Timm
> Assignee: Valentin Vidić
> Attachments: ast11-go.pcap, ast11-nogo.pcap, asterisk.log, call_from_extern_not_working.cap, call_from_intern_working.cap, debug.log, full.zip, nat_with_ipv6.diff, sip_general_additional.conf
>
>
> Hi All,
> I tried to play a little bit with IPv6 to test our VoIP quality software with IPv6 RTP streams.
> I add "bindaddr=::" to the general section of the sip.conf and netstat shows that Asterisk is listing also on IPv6.
> My Asterisk server is behind a IPv4 NAT and was working absolutely perfect.
> But after my bindaddr change I got a problem with external calls.
> I spend some time to investigate this issue and found out the outbound calls are working. The externaddr is used in the SIP INVITE.
> If I received a inbound call the externaddr isn't used any more in SDP part of the answer from the Asterisk. The result is one way audio. In addition I saw the following message in the Asterisk log:
> [May 25 19:18:18] WARNING[3674] chan_sip.c: Address remapping activated in sip.conf but we're using IPv6, which doesn't need it. Please remove "localnet" and/or "externaddr" settings.
> I think that is a bug because the externaddr is used correct during the outbound calls.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list