diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-22 15:25:28 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-22 15:25:28 +0000 |
commit | 38ed4a96396b088eca336f195c5d4edb2b38d0fc (patch) | |
tree | 3b6a2c1b7898f8a5bfe0a0a14df2def86112c683 /apps/app_followme.c | |
parent | 585e2c5f1472d9ebdfd4e33d9f8c3eec52adcd4c (diff) |
Merged revisions 65408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r65408 | bweschke | 2007-05-22 10:02:56 -0400 (Tue, 22 May 2007) | 3 lines
Fix a problem with flag recognition.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index 285fe7674..2e313d012 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, ""); 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, ""); res = 0; } else { |