fix moh option in conjunction with intro option (bug #4298)
authorRussell Bryant <russell@russellbryant.com>
Thu, 19 May 2005 01:09:46 +0000 (01:09 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 19 May 2005 01:09:46 +0000 (01:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5720 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 2e8d3d0..afd39f2 100755 (executable)
@@ -640,7 +640,6 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                        ast_waitstream(chan, "");
                goto outrun;
        }
-       conf->users++;
 
        if (confflags & CONFFLAG_MARKEDUSER)
                conf->markedusers++;
@@ -687,6 +686,8 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                ast_record_review(chan,"vm-rec-name",user->namerecloc, 10,"sln", &duration, NULL);
        }
 
+       conf->users++;
+
        if (!(confflags & CONFFLAG_QUIET)) {
                if (conf->users == 1 && !(confflags & CONFFLAG_WAITMARKED))
                        if (!ast_streamfile(chan, "conf-onlyperson", chan->language))