]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Answer the channel if it has not already been answered and we've already found a...
authorBJ Weschke <bweschke@btwtech.com>
Wed, 7 Jan 2009 18:20:31 +0000 (18:20 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Wed, 7 Jan 2009 18:20:31 +0000 (18:20 +0000)
 (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

apps/app_followme.c

index 62a3cb2481685c04ee9ab1bb838498d985262ec4..0bd6e2e5f6e240298fc7f133d9e07745386e547c 100644 (file)
@@ -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, "");