From 17187101f6536d060f7f4f8f23a39507af812d68 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 21 Mar 2006 15:53:27 +0000 Subject: [PATCH] don't add conference participant if the user hangs up while recording their name (issue #6661) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@13851 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_meetme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 37d34d395f..c66410339e 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -901,7 +901,9 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c snprintf(user->namerecloc, sizeof(user->namerecloc), "%s/meetme/meetme-username-%s-%d", ast_config_AST_SPOOL_DIR, conf->confno, user->user_no); - ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL); + res = ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL); + if (res == -1) + goto outrun; } if (!(confflags & CONFFLAG_QUIET)) {