From: BJ Weschke Date: Tue, 22 May 2007 14:02:56 +0000 (+0000) Subject: Fix a problem with flag recognition. X-Git-Tag: 1.4.5~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=288d51d94fe79b5f7df894e4f931c58089bf8b70;p=thirdparty%2Fasterisk.git Fix a problem with flag recognition. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65408 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_followme.c b/apps/app_followme.c index 3eedf2272f..e068054ac4 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -981,13 +981,13 @@ static int app_exec(struct ast_channel *chan, void *data) } ast_mutex_unlock(&f->lock); - if (targs.followmeflags.flags & FOLLOWMEFLAG_STATUSMSG) + if (ast_test_flag(&targs.followmeflags, FOLLOWMEFLAG_STATUSMSG)) ast_stream_and_wait(chan, targs.statusprompt, chan->language, ""); snprintf(namerecloc,sizeof(namerecloc),"%s/followme.%s",ast_config_AST_SPOOL_DIR,chan->uniqueid); duration = 5; - if (targs.followmeflags.flags & FOLLOWMEFLAG_RECORDNAME) + if (ast_test_flag(&targs.followmeflags, FOLLOWMEFLAG_RECORDNAME)) if (ast_play_and_record(chan, "vm-rec-name", namerecloc, 5, "sln", &duration, 128, 0, NULL) < 0) goto outrun; @@ -1021,7 +1021,7 @@ static int app_exec(struct ast_channel *chan, void *data) if (targs.status != 100) { ast_moh_stop(chan); - if (targs.followmeflags.flags & FOLLOWMEFLAG_UNREACHABLEMSG) + if (ast_test_flag(&targs.followmeflags, FOLLOWMEFLAG_UNREACHABLEMSG)) ast_stream_and_wait(chan, targs.sorryprompt, chan->language, ""); res = 0; } else {