aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-11 08:07:23 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-11 08:07:23 +0000
commit266b66e541af4cf22331ed6816468a803761484f (patch)
treeba5cda93e1f83569d117cd5e6cc88fc560c856b9 /apps/app_meetme.c
parent9759dfd21d4b31af78498fec0e5cf16caf308fb3 (diff)
Fix dynamic user count, Take 4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1936 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rwxr-xr-xapps/app_meetme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 5975e33b2..21f3fb9e7 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -191,8 +191,6 @@ static struct ast_conference *build_conf(char *confno, char *pin, int make, int
ast_log(LOG_WARNING, "Out of memory\n");
}
cnfout:
- if (cnf && (make || dynamic))
- cnf->users++;
ast_mutex_unlock(&conflock);
return cnf;
}
@@ -266,6 +264,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
char __buf[CONF_SIZE + AST_FRIENDLY_OFFSET];
char *buf = __buf + AST_FRIENDLY_OFFSET;
+ conf->users++;
if (!(confflags & CONFFLAG_QUIET) && conf->users == 1) {
if (!ast_streamfile(chan, "conf-onlyperson", chan->language))
ast_waitstream(chan, "");