[asterisk-commits] jrose: branch 12 r410966 - in /branches/12: ./ apps/app_confbridge.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 20 17:55:07 CDT 2014
Author: jrose
Date: Thu Mar 20 17:54:59 2014
New Revision: 410966
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=410966
Log:
app_confbridge: Fix bug - users with startmuted set don't start muted
(closes issue ASTERISK-23461)
Reported by: Chico Manobela
Review: https://reviewboard.asterisk.org/r/3373/
........
Merged revisions 410965 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/12/ (props changed)
branches/12/apps/app_confbridge.c
Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/12/apps/app_confbridge.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/apps/app_confbridge.c?view=diff&rev=410966&r1=410965&r2=410966
==============================================================================
--- branches/12/apps/app_confbridge.c (original)
+++ branches/12/apps/app_confbridge.c Thu Mar 20 17:54:59 2014
@@ -995,6 +995,13 @@
ast_channel_name(user->chan), mute_effective ? "muted" : "unmuted",
mute_user, mute_system);
user->features.mute = mute_effective;
+ ast_test_suite_event_notify("CONF_MUTE_UPDATE",
+ "Mode: %s\r\n"
+ "Conference: %s\r\n"
+ "Channel: %s",
+ mute_effective ? "muted" : "unmuted",
+ user->b_profile.name,
+ ast_channel_name(user->chan));
}
void conf_moh_stop(struct confbridge_user *user)
@@ -1645,6 +1652,12 @@
}
}
+ /* If the caller should be joined already muted, set the flag before we join. */
+ if (ast_test_flag(&user.u_profile, USER_OPT_STARTMUTED)) {
+ /* Set user level mute request. */
+ user.muted = 1;
+ }
+
/* Look for a conference bridge matching the provided name */
if (!(conference = join_conference_bridge(args.conf_name, &user))) {
res = -1;
@@ -1654,12 +1667,6 @@
/* Keep a copy of volume adjustments so we can restore them later if need be */
volume_adjustments[0] = ast_audiohook_volume_get(chan, AST_AUDIOHOOK_DIRECTION_READ);
volume_adjustments[1] = ast_audiohook_volume_get(chan, AST_AUDIOHOOK_DIRECTION_WRITE);
-
- /* If the caller should be joined already muted, make it so */
- if (ast_test_flag(&user.u_profile, USER_OPT_STARTMUTED)) {
- /* Set user level mute request. */
- user.muted = 1;
- }
if (ast_test_flag(&user.u_profile, USER_OPT_DROP_SILENCE)) {
user.tech_args.drop_silence = 1;
More information about the asterisk-commits
mailing list