@onereach/step-voice 1.2202.17 → 1.2202.18
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 +6 -2
- package/package.json +1 -1
package/dst/Global Command.js
CHANGED
|
@@ -64,7 +64,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
64
64
|
switch (event.params.type) {
|
|
65
65
|
case 'hangup': {
|
|
66
66
|
return await this.hangup(channel, event).finally(async () => {
|
|
67
|
-
await this.sendEventToStep({ event: { ...event, processed: undefined, action: 'local' },
|
|
67
|
+
await this.sendEventToStep({ event: { ...event, processed: undefined, action: 'local' }, toGlobal: false });
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
case 'avm-detected':
|
|
@@ -187,7 +187,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
// this is required to mark event as handled
|
|
190
|
-
this.gotoState(this.state, { name: 'exiting' })
|
|
190
|
+
// this.gotoState(this.state, { name: 'exiting' })
|
|
191
191
|
}
|
|
192
192
|
async exitToThread() {
|
|
193
193
|
this.thread.jumpTo(this.state.exitStep, this.state.result);
|
|
@@ -200,5 +200,9 @@ class GlobalCommand extends voice_1.default {
|
|
|
200
200
|
asr: asr.getSettings(channel.asr)
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
+
exitFlow() {
|
|
204
|
+
this.event.processed = false;
|
|
205
|
+
return super.exitFlow();
|
|
206
|
+
}
|
|
203
207
|
}
|
|
204
208
|
exports.default = GlobalCommand;
|