Fix compilation of app_meetme.
authorSean Bright <sean@malleable.com>
Tue, 8 Sep 2009 22:17:08 +0000 (22:17 +0000)
committerSean Bright <sean@malleable.com>
Tue, 8 Sep 2009 22:17:08 +0000 (22:17 +0000)
Reported by ebroad in #asterisk-bugs

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

apps/app_meetme.c

index 6027e1d..b482217 100644 (file)
@@ -3275,7 +3275,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                                        if ((conf->transframe[idx]->frametype != AST_FRAME_NULL) &&
                                                            can_write(chan, confflags)) {
                                                                struct ast_frame *cur;
-                                                               if (musiconhold && !ast_dsp_silence(dsp, conf->transframe[index], &confsilence) && confsilence < MEETME_DELAYDETECTTALK) {
+                                                               if (musiconhold && !ast_dsp_silence(dsp, conf->transframe[idx], &confsilence) && confsilence < MEETME_DELAYDETECTTALK) {
                                                                        ast_moh_stop(chan);
                                                                        mohtempstopped = 1;
                                                                }