@onereach/step-voice 7.0.11-VOIC1606.4 → 7.0.11-VOIC1606.5

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.
@@ -94,6 +94,14 @@ class GlobalCommand extends voice_1.default {
94
94
  }
95
95
  });
96
96
  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
+ }
97
105
  this.triggers.local('ack', ({ params: { ack } }) => {
98
106
  const worker = this.process.getThread(this.workerThreadId);
99
107
  delete worker?.state.acktrd;
@@ -115,14 +123,6 @@ class GlobalCommand extends voice_1.default {
115
123
  call.recordCall = true;
116
124
  await this.updateData();
117
125
  }
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
126
  // set grammar on voicer
127
127
  await this.sendCommands(call, [
128
128
  {
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.5",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",