]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp: Fix regression when IPv6 is not available. 39/4539/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:03:11 +0000 (20:03 +0000)
commit798179995ba2ba1fdb6aa175d8603c6c02fb9a34
treeeff5be926cdd35bdab03192a77c739deb595c9fb
parent12517ad1f37daf0ff9ec55b92eb3cdf6843fdc64
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