bridge_native_rtp: Fix audio issues when moving from remote bridge to softmix
authorMatthew Jordan <mjordan@digium.com>
Fri, 17 Oct 2014 02:01:40 +0000 (02:01 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 17 Oct 2014 02:01:40 +0000 (02:01 +0000)
commitdf59a71b83d1c469717193db52d91f2fa6f2507f
tree3fa1d3f8ddb12aa901e1c208103253b52bb8217a
parent2ccbdd262441c82d714b7fc0249f1afe4be207a5
bridge_native_rtp: Fix audio issues when moving from remote bridge to softmix

When a native RTP bridge that is remotely bridging its participants switches
to a softmix bridge, it may not properly re-INVITE the media for one or both
participants back to Asterisk. This is due to the current bridge_native_rtp
code only re-INVITEs if it believes the channel will survive the bridge
operation. Currently, that code is failing, as it expects the channels to
have a soft hangup flag set on it indicating that a redirect has occurred
or that the channel is going to leave the bridge. (The code did not take into
account a smart bridge operation).

This patch also renames a few things to be more reflective of the underlying
types.

Review: https://reviewboard.asterisk.org/r/3997/

ASTERISK-24327 #close
........

Merged revisions 425760 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 425761 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_native_rtp.c