Review Board 1.7.16


chan_sip: handle IPv4 mapped clients when NAT and IPv6 socket is enabled

Review Request #4563 - Created March 30, 2015 and submitted

Valentin Vidić
ASTERISK-18032
Reviewers
asterisk-dev
Asterisk
When udpbindaddr=:: is set Asterisk accepts IPv4 and IPv6 clients both stored in a struct sockaddr_in6 with AF_INET6 family type. Current NAT code for IPv4 checks if the socket type is AF_INET6 and thus fails to handle IPv4 mapped addresses properly. The patch adds an additional check for this case allowing IPv4 clients to be handled by NAT even when IPv6 is enabled.
Patch solves the problem of failing incoming calls on a local NATed installation with IPv6 sockets enabled.
Review request changed
Updated (April 8, 2015, 7:28 a.m.)
  • changed from pending to submitted
Committed in revision 434313

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.