[asterisk-commits] file: trunk r395227 - /trunk/bridges/bridge_native_rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 23 17:32:41 CDT 2013


Author: file
Date: Tue Jul 23 17:32:39 2013
New Revision: 395227

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395227
Log:
Fix a check in bridge_native_rtp which determined if attaching the framehook failed or not.

Modified:
    trunk/bridges/bridge_native_rtp.c

Modified: trunk/bridges/bridge_native_rtp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/bridges/bridge_native_rtp.c?view=diff&rev=395227&r1=395226&r2=395227
==============================================================================
--- trunk/bridges/bridge_native_rtp.c (original)
+++ trunk/bridges/bridge_native_rtp.c Tue Jul 23 17:32:39 2013
@@ -249,7 +249,7 @@
 	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;
 	}




More information about the asterisk-commits mailing list