@onereach/step-voice 6.0.1-fixsubflow.0 → 6.0.1

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.
Files changed (2) hide show
  1. package/dst/voice.js +8 -2
  2. package/package.json +1 -1
package/dst/voice.js CHANGED
@@ -50,8 +50,14 @@ class VoiceStep extends step_1.default {
50
50
  }
51
51
  const expectHearbeatBefore = Date.now() + 290000;
52
52
  this.triggers.deadline(expectHearbeatBefore, () => {
53
- this.end();
54
- this.throwError(new Error('missing heartbeat, call is probably already hangup'));
53
+ this.thread.background = true;
54
+ if (call.ended) {
55
+ this.log.warn('missing heartbeat, call is ended');
56
+ this.end();
57
+ }
58
+ else {
59
+ this.log.error('missing heartbeat, call is probably already hangup');
60
+ }
55
61
  });
56
62
  }
57
63
  else if (call.vv !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.0.1-fixsubflow.0",
3
+ "version": "6.0.1",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",