From 5c410268009ee6b56f4e0fc258b8dbb08b83e769 Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 14 Feb 2006 19:08:51 +0000 Subject: Properly stopsteram on meetme (bug #6137) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9989 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_meetme.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/app_meetme.c') diff --git a/apps/app_meetme.c b/apps/app_meetme.c index d7656038d..0b56add34 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -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; -- cgit v1.2.3