Properly stopsteram on meetme (bug #6137)
authorMark Spencer <markster@digium.com>
Tue, 14 Feb 2006 19:08:51 +0000 (19:08 +0000)
committerMark Spencer <markster@digium.com>
Tue, 14 Feb 2006 19:08:51 +0000 (19:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index d765603..0b56add 100644 (file)
@@ -1396,9 +1396,10 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                                if (!menu_active) {
                                                        menu_active = 1;
                                                        /* Record this sound! */
-                                                       if (!ast_streamfile(chan, "conf-adminmenu", chan->language))
+                                                       if (!ast_streamfile(chan, "conf-adminmenu", chan->language)) {
                                                                dtmf = ast_waitstream(chan, AST_DIGIT_ANY);
-                                                       else 
+                                                               ast_stopstream(chan);
+                                                       } else 
                                                                dtmf = 0;
                                                } else 
                                                        dtmf = f->subclass;
@@ -1475,9 +1476,10 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                                /* User menu */
                                                if (!menu_active) {
                                                        menu_active = 1;
-                                                       if (!ast_streamfile(chan, "conf-usermenu", chan->language))
+                                                       if (!ast_streamfile(chan, "conf-usermenu", chan->language)) {
                                                                dtmf = ast_waitstream(chan, AST_DIGIT_ANY);
-                                                       else
+                                                               ast_stopstream(chan);
+                                                       } else
                                                                dtmf = 0;
                                                } else 
                                                        dtmf = f->subclass;