diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-07 18:20:31 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-07 18:20:31 +0000 |
commit | b0de4fff8bac7c62e7fd2820bc5509be55ad87e6 (patch) | |
tree | 15b007c2c0a853a7fee07e5f61a57d23d5465b5a /apps/app_followme.c | |
parent | b26657cfe140a8fa00c5cd2b3379d90218f71558 (diff) |
Answer the channel if it has not already been answered and we've already found a valid profile for followme.
(closes issue #14140)
Reported by: dimas
Patches:
14140.patch uploaded by dimas
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@167478 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index 62a3cb248..0bd6e2e5f 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -1073,6 +1073,11 @@ static int app_exec(struct ast_channel *chan, void *data) } ast_mutex_unlock(&f->lock); + /* Answer the call */ + if (chan->_state != AST_STATE_UP) { + ast_answer(chan); + } + if (ast_test_flag(&targs.followmeflags, FOLLOWMEFLAG_STATUSMSG)) ast_stream_and_wait(chan, targs.statusprompt, ""); |