[asterisk-commits] rmudgett: trunk r393729 - /trunk/main/bridging.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 5 09:54:28 CDT 2013


Author: rmudgett
Date: Fri Jul  5 09:54:27 2013
New Revision: 393729

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393729
Log:
OneTouchRecord: Add function defined earlier: ast_bridge_features_do()

Modified:
    trunk/main/bridging.c

Modified: trunk/main/bridging.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/bridging.c?view=diff&rev=393729&r1=393728&r2=393729
==============================================================================
--- trunk/main/bridging.c (original)
+++ trunk/main/bridging.c Fri Jul  5 09:54:27 2013
@@ -4994,6 +4994,23 @@
 	return 0;
 }
 
+int ast_bridge_features_do(enum ast_bridge_builtin_feature feature, struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, void *hook_pvt)
+{
+	ast_bridge_hook_callback callback;
+
+	if (ARRAY_LEN(builtin_features_handlers) <= feature) {
+		return -1;
+	}
+
+	callback = builtin_features_handlers[feature];
+	if (!callback) {
+		return -1;
+	}
+	callback(bridge, bridge_channel, hook_pvt);
+
+	return 0;
+}
+
 int ast_bridge_interval_register(enum ast_bridge_builtin_interval interval, ast_bridge_builtin_set_limits_fn callback)
 {
 	if (ARRAY_LEN(builtin_interval_handlers) <= interval




More information about the asterisk-commits mailing list