dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
bweschke 2009-01-07 18:20:31 +00:00
parent b26657cfe1
commit b0de4fff8b
1 changed files with 5 additions and 0 deletions

View 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, "");