@onereach/step-voice 7.0.4 → 7.0.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 +4 -0
- package/package.json +1 -1
package/dst/Global Command.js
CHANGED
|
@@ -92,7 +92,9 @@ class GlobalCommand extends voice_1.default {
|
|
|
92
92
|
await this.initGrammar(call);
|
|
93
93
|
}
|
|
94
94
|
if (allowAck) {
|
|
95
|
+
this.log.debug('subscribing gc to ack');
|
|
95
96
|
this.triggers.local('ack', ({ params: { ack } }) => {
|
|
97
|
+
this.log.debug('gc ack received', { ack });
|
|
96
98
|
delete worker.state.acktrd;
|
|
97
99
|
if (ack)
|
|
98
100
|
this.exitStep('no commands');
|
|
@@ -166,6 +168,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
166
168
|
this.end();
|
|
167
169
|
});
|
|
168
170
|
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
171
|
+
this.log.debug('gc in/voice event', event.params);
|
|
169
172
|
switch (event.params.type) {
|
|
170
173
|
case 'ack': {
|
|
171
174
|
this.acceptAck({ ack: true });
|
|
@@ -336,6 +339,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
336
339
|
}
|
|
337
340
|
acceptAck(eventParams) {
|
|
338
341
|
if (this.state.acktrd) {
|
|
342
|
+
this.log.debug('accepting ack', eventParams);
|
|
339
343
|
this.process.enqueue({
|
|
340
344
|
thread: this.state.acktrd,
|
|
341
345
|
name: 'ack',
|