aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 14:02:56 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 14:02:56 +0000
commit3cf73e21ca09b022819bcb371cfe410736a960ec (patch)
tree104dfc22968fbb455087dcbe0b2ea68828373853 /apps
parentaec2973d1082b5ef9b50fb7b4310edf5b4cfeb90 (diff)
Fix a problem with flag recognition.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65408 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_followme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index 3eedf2272..e068054ac 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 {