]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Bridging: Fix bouncing native bridge
authorKinsey Moore <kmoore@digium.com>
Fri, 12 Sep 2014 18:17:44 +0000 (18:17 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 12 Sep 2014 18:17:44 +0000 (18:17 +0000)
commit7aa79c7881e891f335da0c627babafb53cb5b972
tree9fec3609124b5f33579a2914d332ce2ae815d5c0
parent74f3df57deee681b1e5bd28de7f2401c1e08b2f6
Bridging: Fix bouncing native bridge

This fixes a situation in Asterisk 1.8 and 11 where ast_channel_bridge
could cause a bouncing native bridge. In the case of the
dial_LS_options test, this was a remote RTP bridge which caused the
audio path to continually cycle between Asterisk and the remote
endpoints generating a large number of SIP messages and delaying the
test long enough to cause it to fail (checking timing was part of the
test). The root cause was that the code to decide whether to use native
bridging was expecting a time-remaining value of 0 to be the default
instead of the actual default value of -1. A value of 0 or negative
numbers could also be generated by preceding code in some
circumstances. Both issues are addressed in this patch.

ASTERISK-24211 #close
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/3987/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@423006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c