]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_native_rtp: Keep rtp instance refs on bridge_channel
authorGeorge Joseph <gjoseph@digium.com>
Fri, 9 Jun 2017 03:50:43 +0000 (21:50 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 27 Jun 2017 16:08:19 +0000 (11:08 -0500)
commiteb48e99bd4f4556424a6799e2e5f7aebf8911e8d
tree69c08d59365a3351eea57a62a43caa7052ad1ca8
parent9fbc34d2bd5393d93d8b3b3a8c6daa895c2e9633
bridge_native_rtp: Keep rtp instance refs on bridge_channel

There have been reports of deadlocks caused by an attempt to send a frame
to a channel's rtp instance after the channel has left the native bridge
and been destroyed.  This patch effectively causes the bridge channel to
keep a reference to the glue and both the audio and video rtp instances
so what gets started will get stopped.

ASTERISK-26978 #close
Reported-by: Ross Beer
Change-Id: I9e1ac49fa4af68d64826ccccd152593cf8cdb21a
bridges/bridge_native_rtp.c
include/asterisk/rtp_engine.h