@onereach/step-voice 7.0.10 → 7.0.11-VOIC1606.4
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.d.ts +4 -0
- package/dst/Global Command.js +8 -0
- package/dst/Initiate Call.js +4 -1
- package/dst/Transfer.js +2 -1
- package/dst/voice.d.ts +4 -0
- package/package.json +1 -1
package/dst/Global Command.d.ts
CHANGED
package/dst/Global Command.js
CHANGED
|
@@ -115,6 +115,14 @@ class GlobalCommand extends voice_1.default {
|
|
|
115
115
|
call.recordCall = true;
|
|
116
116
|
await this.updateData();
|
|
117
117
|
}
|
|
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
|
+
}
|
|
118
126
|
// set grammar on voicer
|
|
119
127
|
await this.sendCommands(call, [
|
|
120
128
|
{
|
package/dst/Initiate Call.js
CHANGED
|
@@ -209,7 +209,10 @@ class InitiateCall extends voice_1.default {
|
|
|
209
209
|
: undefined,
|
|
210
210
|
timeout: originateTimeout,
|
|
211
211
|
version: 2,
|
|
212
|
-
sessionExpireTime: this.session.expireTime
|
|
212
|
+
sessionExpireTime: this.session.expireTime,
|
|
213
|
+
loopPrevention: call?.loopPrevention ?? {
|
|
214
|
+
v: 1
|
|
215
|
+
}
|
|
213
216
|
};
|
|
214
217
|
if (otherCallRef) {
|
|
215
218
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
package/dst/Transfer.js
CHANGED
package/dst/voice.d.ts
CHANGED