mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-11 05:54:21 +00:00
bugfix #192: config with dtmf only followed later by gather with speech not working
This commit is contained in:
1 parent
1a1f2770b6
commit
2cc3140de0
2 files changed
+16
-6
No files matched your search
+6
-2
@@ -262,8 +262,12 @@ class TaskGather extends Task {
|
||||
this._resolve('killed');
|
||||
}
|
||||
|
||||
updateTimeout(timeout) {
|
||||
this.logger.info(`TaskGather:updateTimeout - updating timeout to ${timeout}`);
|
||||
updateTaskInProgress(opts) {
|
||||
if (!this.needsStt && opts.input.includes('speech')) {
|
||||
this.logger.info('TaskGather:updateTaskInProgress - adding speech to a background gather');
|
||||
return false; // this needs be handled by killing the background gather and starting a new one
|
||||
}
|
||||
const {timeout} = opts;
|
||||
this.timeout = timeout;
|
||||
this._startTimer();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user