Make the MeetMeAdmin N command (mute all nonadmins) not mute admins
authorJonathan Rose <jrose@digium.com>
Wed, 4 Apr 2012 13:51:45 +0000 (13:51 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 4 Apr 2012 13:51:45 +0000 (13:51 +0000)
(Closes Issue ASTERISK-19335)
Reported by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1843/
........

Merged revisions 361090 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 361091 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361092 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 8c4dc3d..46a42a5 100644 (file)
@@ -4716,7 +4716,7 @@ static int admin_exec(struct ast_channel *chan, const char *data) {
                user->adminflags |= ADMINFLAG_MUTED;
                break;
        case 78: /* N: Mute all (non-admin) users */
-               ao2_callback(cnf->usercontainer, OBJ_NODATA, user_set_muted_cb, NULL);
+               ao2_callback(cnf->usercontainer, OBJ_NODATA, user_set_muted_cb, &cnf);
                break;                                  
        case 109: /* m: Unmute */ 
                user->adminflags &= ~(ADMINFLAG_MUTED | ADMINFLAG_SELFMUTED | ADMINFLAG_T_REQUEST);