From: Mark Spencer Date: Fri, 16 Apr 2004 02:51:47 +0000 (+0000) Subject: Answer if it needs it... X-Git-Tag: 1.0.0-rc1~730 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1487d749fe7af7950e91c1030978441ac614a4f0;p=thirdparty%2Fasterisk.git Answer if it needs it... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2699 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_festival.c b/apps/app_festival.c index 337de43b61..fbe63cdeb3 100755 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -155,6 +155,9 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in return -1; } + /* Answer if it's not already going */ + if (chan->_state != AST_STATE_UP) + ast_answer(chan); ast_stopstream(chan); owriteformat = chan->writeformat;