Don't bother decode on muted participants
authorMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 14:14:01 +0000 (14:14 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 14:14:01 +0000 (14:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7548 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index d966cfd..4333901 100644 (file)
@@ -1312,10 +1312,10 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                        user->zapchannel = !retryzap;
                                        goto zapretry;
                                }
-                               if (!(confflags & CONFFLAG_MONITOR))
-                                       f = ast_read(c);
-                               else
+                               if ((confflags & CONFFLAG_MONITOR) || (user->adminflags & ADMINFLAG_MUTED))
                                        f = ast_read_noaudio(c);
+                               else
+                                       f = ast_read(c);
                                if (!f)
                                        break;
                                if ((f->frametype == AST_FRAME_VOICE) && (f->subclass == AST_FORMAT_SLINEAR)) {