@onereach/step-voice 7.0.11-VOIC1606.5 → 7.0.11-VOIC1606.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dst/Global Command.js +9 -8
- package/package.json +1 -1
package/dst/Global Command.js
CHANGED
|
@@ -93,15 +93,16 @@ class GlobalCommand extends voice_1.default {
|
|
|
93
93
|
await this.initGrammar(call);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
+
// Set loop prevention settings on call object
|
|
97
|
+
if (this.data.loopPrevention?.enabled) {
|
|
98
|
+
call.loopPrevention = {
|
|
99
|
+
enabled: this.data.loopPrevention.enabled,
|
|
100
|
+
maxLoops: this.data.loopPrevention.maxLoops
|
|
101
|
+
};
|
|
102
|
+
this.log.error('Set loop prevention settings on call object', call.loopPrevention);
|
|
103
|
+
await this.updateData();
|
|
104
|
+
}
|
|
96
105
|
if (allowAck) {
|
|
97
|
-
// Set loop prevention settings on call object
|
|
98
|
-
if (this.data.loopPrevention?.enabled) {
|
|
99
|
-
call.loopPrevention = {
|
|
100
|
-
enabled: this.data.loopPrevention.enabled,
|
|
101
|
-
maxLoops: this.data.loopPrevention.maxLoops
|
|
102
|
-
};
|
|
103
|
-
await this.updateData();
|
|
104
|
-
}
|
|
105
106
|
this.triggers.local('ack', ({ params: { ack } }) => {
|
|
106
107
|
const worker = this.process.getThread(this.workerThreadId);
|
|
107
108
|
delete worker?.state.acktrd;
|