Fix a check in bridge_native_rtp which determined if attaching the framehook failed...
authorJoshua Colp <jcolp@digium.com>
Tue, 23 Jul 2013 22:32:39 +0000 (22:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 23 Jul 2013 22:32:39 +0000 (22:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395227 65c4cc65-6c06-0410-ace0-fbb531ad65f3

bridges/bridge_native_rtp.c

index 52280a6..154082a 100644 (file)
@@ -249,7 +249,7 @@ static int native_rtp_bridge_framehook_attach(struct ast_bridge_channel *bridge_
        ast_channel_lock(bridge_channel->chan);
        data->id = ast_framehook_attach(bridge_channel->chan, &hook);
        ast_channel_unlock(bridge_channel->chan);
-       if (!data->id < 0) {
+       if (data->id < 0) {
                ao2_cleanup(data);
                return -1;
        }