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ć
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 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