@onereach/step-voice 6.1.26-VOIC1449.4 → 6.1.26-VOIC1449.6

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.
@@ -23,7 +23,8 @@ class WaitForCall extends voice_1.default {
23
23
  }
24
24
  async onCall(event) {
25
25
  const { asr, tts, endOfInputTimeout } = this.data;
26
- this.log.debug('onCall', event);
26
+ this.log.debug('ON_CALL_X', event);
27
+ console.log('ON_CALL_X', event);
27
28
  const call = {
28
29
  headers: event.params.headers,
29
30
  // @ts-expect-error
@@ -37,12 +38,14 @@ class WaitForCall extends voice_1.default {
37
38
  delete call.from;
38
39
  delete call.to;
39
40
  const presetTime = (Number(endOfInputTimeout) || 0) * 60 * 1000;
41
+ const beginningSessionId = event?.reporting?.beginningSessionId;
40
42
  await this.session.start({
41
43
  timeout: presetTime || defaultSessionTimeout,
42
44
  reporting: {
43
45
  settingsKey: 'session',
44
46
  startedBy: 'Visitor',
45
- sessionType: 'Phone'
47
+ sessionType: 'Phone',
48
+ beginningSessionId
46
49
  }
47
50
  });
48
51
  await this.startConversation(call);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.1.26-VOIC1449.4",
3
+ "version": "6.1.26-VOIC1449.6",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",