@onereach/step-voice 7.0.11-VOIC1606.4 → 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,6 +93,15 @@ 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
106
|
this.triggers.local('ack', ({ params: { ack } }) => {
|
|
98
107
|
const worker = this.process.getThread(this.workerThreadId);
|
|
@@ -115,14 +124,6 @@ class GlobalCommand extends voice_1.default {
|
|
|
115
124
|
call.recordCall = true;
|
|
116
125
|
await this.updateData();
|
|
117
126
|
}
|
|
118
|
-
// Set loop prevention settings on call object
|
|
119
|
-
if (this.data.loopPrevention?.enabled) {
|
|
120
|
-
call.loopPrevention = {
|
|
121
|
-
enabled: this.data.loopPrevention.enabled,
|
|
122
|
-
maxLoops: this.data.loopPrevention.maxLoops
|
|
123
|
-
};
|
|
124
|
-
await this.updateData();
|
|
125
|
-
}
|
|
126
127
|
// set grammar on voicer
|
|
127
128
|
await this.sendCommands(call, [
|
|
128
129
|
{
|