@onereach/step-voice 4.0.41 → 4.0.42-repromptstimeouts.0

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.
@@ -127,12 +127,12 @@ class GlobalCommand extends voice_1.default {
127
127
  switch (this.data.processHangUp) {
128
128
  case 'user':
129
129
  return isHangedUpByBot
130
- ? this.exitFlow()
130
+ ? this.end()
131
131
  : await this.exitThread(this.event, hangUpType, 'hang up');
132
132
  case 'bot':
133
133
  return isHangedUpByBot
134
134
  ? await this.exitThread(this.event, hangUpType, 'hang up')
135
- : this.exitFlow();
135
+ : this.end();
136
136
  case 'both':
137
137
  return await this.exitThread(this.event, hangUpType, 'hang up');
138
138
  case 'none':
package/dst/Hangup.js CHANGED
@@ -23,6 +23,8 @@ class Hangup extends voice_1.default {
23
23
  if (channel.hangup)
24
24
  return this.exitStep('next');
25
25
  try {
26
+ channel.sessionEndedBy = 'Bot';
27
+ await this.updateData();
26
28
  await this.sendCommands(channel, [{ name: 'hangup' }]);
27
29
  }
28
30
  catch (err) {
package/dst/voice.js CHANGED
@@ -204,6 +204,7 @@ class VoiceStep extends step_1.default {
204
204
  }
205
205
  this.state.repIdx = index + 1;
206
206
  params.timeout = this.rptsTimeout({ noReplyDelay, repromptsList });
207
+ command.params = params;
207
208
  const reportingObject = {
208
209
  sections: command.params.sections,
209
210
  reprompt: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "4.0.41",
3
+ "version": "4.0.42-repromptstimeouts.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",