[asterisk-commits] bweschke: trunk r167478 - /trunk/apps/app_followme.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 7 12:20:32 CST 2009
Author: bweschke
Date: Wed Jan 7 12:20:31 2009
New Revision: 167478
URL: http://svn.digium.com/view/asterisk?view=rev&rev=167478
Log:
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
Modified:
trunk/apps/app_followme.c
Modified: trunk/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_followme.c?view=diff&rev=167478&r1=167477&r2=167478
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Wed Jan 7 12:20:31 2009
@@ -1073,6 +1073,11 @@
}
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, "");
More information about the asterisk-commits
mailing list