@onereach/step-voice 7.0.11-VOIC1606.2 → 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.
- package/dst/Global Command.js +8 -8
- package/dst/Initiate Call.js +3 -1
- package/package.json +1 -1
package/dst/Global Command.js
CHANGED
|
@@ -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/dst/Initiate Call.js
CHANGED
|
@@ -210,7 +210,9 @@ class InitiateCall extends voice_1.default {
|
|
|
210
210
|
timeout: originateTimeout,
|
|
211
211
|
version: 2,
|
|
212
212
|
sessionExpireTime: this.session.expireTime,
|
|
213
|
-
loopPrevention: call
|
|
213
|
+
loopPrevention: call?.loopPrevention ?? {
|
|
214
|
+
v: 1
|
|
215
|
+
}
|
|
214
216
|
};
|
|
215
217
|
if (otherCallRef) {
|
|
216
218
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|