aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-17 20:10:29 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-17 20:10:29 +0000
commit8a39882aa0e9912f42e4d4a6b42e752dd58fbba7 (patch)
tree6bdf94fda2c87ada69b66e60aed7c05e94c41aea
parentf5fa59f9a495b8d358d20ff7559f7ec78ba8b977 (diff)
Stop any generators running on a channel when
festival is called as described in 5996 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8140 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_festival.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 186a50ae7..d3bd1e9b9 100644
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -175,7 +175,8 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
if (chan->_state != AST_STATE_UP)
ast_answer(chan);
ast_stopstream(chan);
-
+ ast_indicate(chan, -1);
+
owriteformat = chan->writeformat;
res = ast_set_write_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {