[asterisk-commits] file: branch file/bridging r107287 - /team/file/bridging/apps/app_confbridge.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 10 18:24:11 CDT 2008


Author: file
Date: Mon Mar 10 18:24:10 2008
New Revision: 107287

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107287
Log:
Add option which joins the caller to the bridge already muted.

Modified:
    team/file/bridging/apps/app_confbridge.c

Modified: team/file/bridging/apps/app_confbridge.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/apps/app_confbridge.c?view=diff&rev=107287&r1=107286&r2=107287
==============================================================================
--- team/file/bridging/apps/app_confbridge.c (original)
+++ team/file/bridging/apps/app_confbridge.c Mon Mar 10 18:24:10 2008
@@ -58,6 +58,7 @@
 	OPTION_MENU = (1 << 2),         /*!< Set if the caller should have access to the conference bridge IVR menu */
 	OPTION_MUSICONHOLD = (1 << 3),  /*!< Set if music on hold should be played if nobody else is in the conference bridge */
 	OPTION_NOONLYPERSON = (1 << 4), /*!< Set if the "you are currently the only person in this conference" sound file should not be played */
+	OPTION_STARTMUTED = (1 << 5),   /*!< Set if the caller should be initially set muted */
 } option_flags;
 
 AST_APP_OPTIONS(app_opts,{
@@ -66,6 +67,7 @@
 	AST_APP_OPTION('m', OPTION_MENU),
 	AST_APP_OPTION('M', OPTION_MUSICONHOLD),
 	AST_APP_OPTION('1', OPTION_NOONLYPERSON),
+	AST_APP_OPTION('s', OPTION_STARTMUTED),
 });
 
 #define MAX_CONF_NAME 32
@@ -339,6 +341,11 @@
 		ast_bridge_features_hook(&conference_bridge_user.features, "#", menu_callback, &conference_bridge_user);
 	}
 
+	/* If the caller should be joined already muted, make it so */
+	if (ast_test_flag(&conference_bridge_user.flags, OPTION_STARTMUTED)) {
+		conference_bridge_user.features.mute = 1;
+	}
+
 	/* Join our conference bridge for real */
 	ast_bridge_join(conference_bridge->bridge, chan, NULL, &conference_bridge_user.features);
 




More information about the asterisk-commits mailing list