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