[Asterisk-code-review] res rtp: Fix regression observed in FreeBSD when IPv6 is not... (asterisk[master])

Guido Falsi asteriskteam at digium.com
Thu Nov 24 15:38:30 CST 2016


Hello Richard Mudgett, Anonymous Coward #1000019,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/4487

to look at the new patch set (#4).

Change subject: res_rtp: Fix regression observed in FreeBSD when IPv6 is not available.
......................................................................

res_rtp: Fix regression observed in FreeBSD 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, at least on FreeBSD. This
patch add some code (wrapped in @ifdefs) to reallocate the ast_sockaddr
structure on the fly with an AF_INET family, allowing it to work
correctly when creating the cosket with the passed structure fails.

ASTERISK-26617

Change-Id: I627a4e91795e821111e1cda523f083a40d0e0c3e
---
M main/udptl.c
M res/res_rtp_asterisk.c
2 files changed, 72 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/4487/4
-- 
To view, visit https://gerrit.asterisk.org/4487
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I627a4e91795e821111e1cda523f083a40d0e0c3e
Gerrit-PatchSet: 4
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Guido Falsi <madpilot at freebsd.org>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list