mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 20:40:10 +00:00
Add admin toggle mute all and participant count menu options to app_confbridge
This patch adds two new menu features to app_confbridge, admin_toggle_menu_ participants and participant_count. The admin action will globally mute / unmute all non-admin participants on a converence, while the participant count simply exposes the existing participant count function to the conference bridge menu. This also adds configuration options to change the sound played when the conference is globally muted / unmuted, as well as the necessary config hooks to place these functions in the DTMF menus. (closes issue ASTERISK-18204) Reported by: Kevin Reeves Tested by: Matt Jordan Patches: app_confbridge.c.patch.txt, conf_config_parser.c.patch.txt, confbridge.h.patch.txt uploaded by Kevin Reeves (license 6281) Review: https://reviewboard.asterisk.org/r/1518/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@345560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -83,6 +83,8 @@ enum conf_menu_action_id {
|
||||
MENU_ACTION_NOOP,
|
||||
MENU_ACTION_SET_SINGLE_VIDEO_SRC,
|
||||
MENU_ACTION_RELEASE_SINGLE_VIDEO_SRC,
|
||||
MENU_ACTION_PARTICIPANT_COUNT,
|
||||
MENU_ACTION_ADMIN_TOGGLE_MUTE_PARTICIPANTS,
|
||||
};
|
||||
|
||||
/*! The conference menu action contains both
|
||||
@@ -156,6 +158,8 @@ enum conf_sounds {
|
||||
CONF_SOUND_ERROR_MENU,
|
||||
CONF_SOUND_JOIN,
|
||||
CONF_SOUND_LEAVE,
|
||||
CONF_SOUND_PARTICIPANTS_MUTED,
|
||||
CONF_SOUND_PARTICIPANTS_UNMUTED,
|
||||
};
|
||||
|
||||
struct bridge_profile_sounds {
|
||||
@@ -180,6 +184,8 @@ struct bridge_profile_sounds {
|
||||
AST_STRING_FIELD(errormenu);
|
||||
AST_STRING_FIELD(leave);
|
||||
AST_STRING_FIELD(join);
|
||||
AST_STRING_FIELD(participantsmuted);
|
||||
AST_STRING_FIELD(participantsunmuted);
|
||||
);
|
||||
};
|
||||
|
||||
@@ -202,6 +208,7 @@ struct conference_bridge {
|
||||
unsigned int users; /*!< Number of users present */
|
||||
unsigned int markedusers; /*!< Number of marked users present */
|
||||
unsigned int locked:1; /*!< Is this conference bridge locked? */
|
||||
unsigned int muted:1; /*!< Is this conference bridge muted? */
|
||||
struct ast_channel *playback_chan; /*!< Channel used for playback into the conference bridge */
|
||||
struct ast_channel *record_chan; /*!< Channel used for recording the conference */
|
||||
pthread_t record_thread; /*!< The thread the recording chan lives in */
|
||||
|
Reference in New Issue
Block a user