]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp: Fix regression when IPv6 is not available. 40/4540/1
authorGuido Falsi <mad@madpilot.net>
Tue, 22 Nov 2016 17:20:06 +0000 (18:20 +0100)
committerJoshua Colp <jcolp@digium.com>
Wed, 30 Nov 2016 20:04:31 +0000 (20:04 +0000)
commit2ceb609edb64e930300806e75dc1a45386f800ef
treec20f182eea15343d3e1e912b25cacfe142d22363
parenteec82c6221935ebcc88da8c606481258d3322ad5
res_rtp: Fix regression when IPv6 is not available.

The latest Release candidate fails to create RTP streams when IPv6
is not available. Due to the changes made in September the ast_sockaddr
structure passed around to create these streams is always of AF_INET6
type, causing failure when used for IPv4. This patch adds a utility
function to check for availability of IPv6 and applies such check
at startup to determine how to create the ast_sockaddr structures.

ASTERISK-26617 #close

Change-Id: I627a4e91795e821111e1cda523f083a40d0e0c3e
include/asterisk/utils.h
main/utils.c
res/res_pjsip_sdp_rtp.c
res/res_pjsip_t38.c