summaryrefslogtreecommitdiff
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2009-01-07 18:20:31 +0000
committerBJ Weschke <bweschke@btwtech.com>2009-01-07 18:20:31 +0000
commit3a4e3df193f2c8774471c82a7ecb9dcaec923ff4 (patch)
tree15b007c2c0a853a7fee07e5f61a57d23d5465b5a /apps/app_followme.c
parent8969b030424fdbf5d5b477762c57d772c6d29551 (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: https://origsvn.digium.com/svn/asterisk/trunk@167478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r--apps/app_followme.c5
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, "");