bridge_native_rtp: Take the bridge type choice of both channels into account.
authorJoshua Colp <jcolp@digium.com>
Sun, 1 Jun 2014 15:32:34 +0000 (15:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 1 Jun 2014 15:32:34 +0000 (15:32 +0000)
commit962b78bca19ec8caa8b60efdf792f1bb44aff21a
tree3b4ede426753574e7371eaedd943c194f0dae618
parent00077c46dbd8abbd3881625879cc3887065b0694
bridge_native_rtp: Take the bridge type choice of both channels into account.

The bridge_native_rtp module currently uses the bridge result of the first
channel that joins a bridge as the ultimate result. This means that if the
first channel has direct media enabled but the second does not a direct
media bridge will still occur.

This change makes it so that both sides are taken into account. If either
side forbids the bridge or responds with a local bridge result then
either a generic or local bridge occurs.

ASTERISK-23541 #close
Reported by: Justin E

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

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

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