@onereach/step-voice 7.0.9-VOIC1575.7 → 7.0.9-VOIC1575.9
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/Initiate Call.js +5 -4
- package/package.json +1 -1
package/dst/Initiate Call.js
CHANGED
|
@@ -49,6 +49,7 @@ class InitiateCall extends voice_1.default {
|
|
|
49
49
|
async waitForCall() {
|
|
50
50
|
const { asr, tts, from: botNumber, endUserNumber, sipHost, sipUser, sipPassword, timeout, headers, enableSpoofCallerId, spoofCallerId, isAMD, otherCallRef, otherCallRefThread, handleCancel } = this.data;
|
|
51
51
|
const call = await this.fetchData();
|
|
52
|
+
const callALegId = headers?.find(h => h.name === 'X-Leg-A')?.value;
|
|
52
53
|
this.triggers.once(`in/voice/${call.id}/event`, async (event) => {
|
|
53
54
|
switch (event.params.type) {
|
|
54
55
|
case 'is_flow_ready': {
|
|
@@ -104,7 +105,7 @@ class InitiateCall extends voice_1.default {
|
|
|
104
105
|
{
|
|
105
106
|
name: 'whisper.hold',
|
|
106
107
|
params: {
|
|
107
|
-
id:
|
|
108
|
+
id: callALegId
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
{
|
|
@@ -131,13 +132,13 @@ class InitiateCall extends voice_1.default {
|
|
|
131
132
|
{
|
|
132
133
|
name: 'whisper.hold_off',
|
|
133
134
|
params: {
|
|
134
|
-
id:
|
|
135
|
+
id: callALegId
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
139
|
name: 'whisper.transfer',
|
|
139
140
|
params: {
|
|
140
|
-
id:
|
|
141
|
+
id: callALegId
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
]);
|
|
@@ -218,7 +219,7 @@ class InitiateCall extends voice_1.default {
|
|
|
218
219
|
timeout: originateTimeout,
|
|
219
220
|
version: 2,
|
|
220
221
|
sessionExpireTime: this.session.expireTime,
|
|
221
|
-
useWhisperFeature:
|
|
222
|
+
useWhisperFeature: false
|
|
222
223
|
};
|
|
223
224
|
if (otherCallRef) {
|
|
224
225
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|