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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 23 16:14:25 CDT 2013


Author: file
Date: Tue Jul 23 16:14:24 2013
New Revision: 395205

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395205
Log:
Add some debug messages to make it clear what RTP bridging functionality is in use.

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=395205&r1=395204&r2=395205
==============================================================================
--- trunk/bridges/bridge_native_rtp.c (original)
+++ trunk/bridges/bridge_native_rtp.c Tue Jul 23 16:14:24 2013
@@ -323,11 +323,15 @@
 		}
 		ast_rtp_instance_set_bridged(instance0, instance1);
 		ast_rtp_instance_set_bridged(instance1, instance0);
+		ast_debug(2, "Locally RTP bridged '%s' and '%s' in stack",
+			ast_channel_name(c0->chan), ast_channel_name(c1->chan));
 		break;
 
 	case AST_RTP_GLUE_RESULT_REMOTE:
 		glue0->update_peer(c0->chan, instance1, vinstance1, tinstance1, cap1, 0);
 		glue1->update_peer(c1->chan, instance0, vinstance0, tinstance0, cap0, 0);
+		ast_debug(2, "Remotely bridged '%s' and '%s' - media will flow directly between them\n",
+			ast_channel_name(c0->chan), ast_channel_name(c1->chan));
 		break;
 	case AST_RTP_GLUE_RESULT_FORBID:
 		break;
@@ -378,6 +382,9 @@
 	case AST_RTP_GLUE_RESULT_FORBID:
 		break;
 	}
+
+	ast_debug(2, "Discontinued RTP bridging of '%s' and '%s' - media will flow through Asterisk core\n",
+		ast_channel_name(c0->chan), ast_channel_name(c1->chan));
 }
 
 static int native_rtp_bridge_write(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, struct ast_frame *frame)




More information about the asterisk-commits mailing list