From e366c8c0a004c9c4dfe97e4832538acfad19cce1 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 23 Jul 2013 21:01:06 +0000 Subject: [PATCH] Fix some logic so native RTP bridge will occur when monitor, audiohooks, or framehooks are not present. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395203 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- bridges/bridge_native_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/bridge_native_rtp.c b/bridges/bridge_native_rtp.c index 924686bbe7..8d33b371a6 100644 --- a/bridges/bridge_native_rtp.c +++ b/bridges/bridge_native_rtp.c @@ -84,7 +84,7 @@ static struct ast_frame *native_rtp_framehook(struct ast_channel *chan, struct a /*! \brief Internal helper function which checks whether the channels are compatible with our native bridging */ static int native_rtp_bridge_capable(struct ast_channel *chan) { - return ast_channel_has_audio_frame_or_monitor(chan); + return !ast_channel_has_audio_frame_or_monitor(chan); } /*! \brief Internal helper function which gets all RTP information (glue and instances) relating to the given channels */ -- 2.47.3