[svn-commits] file: branch 1.4 r57053 -
/branches/1.4/apps/app_speech_utils.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Wed Feb 28 10:45:50 MST 2007
Author: file
Date: Wed Feb 28 11:45:50 2007
New Revision: 57053
URL: http://svn.digium.com/view/asterisk?view=rev&rev=57053
Log:
Better handle timeouts when the individual speaks after everything has been played but before the timeout ends.
Modified:
branches/1.4/apps/app_speech_utils.c
Modified: branches/1.4/apps/app_speech_utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_speech_utils.c?view=diff&rev=57053&r1=57052&r2=57053
==============================================================================
--- branches/1.4/apps/app_speech_utils.c (original)
+++ branches/1.4/apps/app_speech_utils.c Wed Feb 28 11:45:50 2007
@@ -587,7 +587,7 @@
}
/* Do timeout check (shared between audio/dtmf) */
- if (started == 1) {
+ if (!quieted && started == 1) {
time(¤t);
if ((current-start) >= timeout) {
done = 1;
@@ -599,8 +599,9 @@
/* Do checks on speech structure to see if it's changed */
ast_mutex_lock(&speech->lock);
- if (ast_test_flag(speech, AST_SPEECH_QUIET) && chan->stream != NULL) {
- ast_stopstream(chan);
+ if (ast_test_flag(speech, AST_SPEECH_QUIET)) {
+ if (chan->stream)
+ ast_stopstream(chan);
ast_clear_flag(speech, AST_SPEECH_QUIET);
quieted = 1;
}
More information about the svn-commits
mailing list