diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-07 18:32:52 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-07 18:32:52 +0000 |
commit | fca1370f4b2f4f220d7afe8d0e09e79606ae4f94 (patch) | |
tree | 964cfb36574c3edd47178b8020690dd76b8428b8 | |
parent | 36bc78ad81a1cd24906603ce7ed14d7dd5843a2d (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.1@167502 f38db490-d61c-443f-a65b-d21fe96a405b
-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 92320fd9c..45297b009 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -970,6 +970,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, ""); |