@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.
@@ -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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.11-VOIC1606.4",
3
+ "version": "7.0.11-VOIC1606.6",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",