aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-07 18:30:39 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-07 18:30:39 +0000
commitc785a8bb95193bac839d8bc1769420d0c855d31c (patch)
tree10c559e85ae0b6a5d3a2b558bcc83daf1a36bb3b
parent126e9b613178447167403b4f5d30bc735d3c4afc (diff)
Merged revisions 167478 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r167478 | bweschke | 2009-01-07 13:20:31 -0500 (Wed, 07 Jan 2009) | 7 lines 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/branches/1.6.0@167498 f38db490-d61c-443f-a65b-d21fe96a405b
-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 f3d2c8d71..46b7aee7f 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -975,6 +975,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, "");