@onereach/step-voice 7.0.11-VOIC1606.5 → 7.0.11-VOIC1606.7
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/dst/Initiate Call.js +1 -0
- 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;
|
package/dst/Initiate Call.js
CHANGED
|
@@ -214,6 +214,7 @@ class InitiateCall extends voice_1.default {
|
|
|
214
214
|
v: 1
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
+
this.log.error('Originate call params', params);
|
|
217
218
|
if (otherCallRef) {
|
|
218
219
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
219
220
|
const otherThread = this.process.getSafeThread(otherCallRefThread || this.thread.id);
|