@onereach/step-voice 4.0.17 → 4.0.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.
@@ -83,6 +83,7 @@ class GlobalCommand extends voice_1.default {
83
83
  switch (event.params.type) {
84
84
  case 'hangup': {
85
85
  await this.hangup(channel);
86
+ await this.sendEventToStep({ toGlobal: false, event: { ...this.event, processed: undefined, action: 'local' } });
86
87
  return this.end();
87
88
  }
88
89
  case 'avm-detected':
package/dst/Hangup.js CHANGED
@@ -20,6 +20,8 @@ class Hangup extends voice_1.default {
20
20
  }
21
21
  });
22
22
  this.triggers.otherwise(async () => {
23
+ if (channel.hangup)
24
+ return this.exitStep('next');
23
25
  try {
24
26
  await this.sendCommands(channel, [{ name: 'hangup' }]);
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",