@onereach/step-voice 4.0.10 → 4.0.11
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 +2 -2
- package/package.json +1 -1
package/dst/Initiate Call.js
CHANGED
|
@@ -32,7 +32,7 @@ class InitiateCall extends voice_1.default {
|
|
|
32
32
|
}
|
|
33
33
|
async waitForCall() {
|
|
34
34
|
const { asr, tts, from: botNumber, endUserNumber, sipHost, sipUser, sipPassword, timeout, headers, enableSpoofCallerId, spoofCallerId, isAMD } = this.data;
|
|
35
|
-
const { id: channelId } = await this.
|
|
35
|
+
const { id: channelId } = await this.fetchData();
|
|
36
36
|
this.triggers.once(`in/voice/${channelId}/event`, async (event) => {
|
|
37
37
|
switch (event.params.type) {
|
|
38
38
|
case 'is_flow_ready': {
|
|
@@ -45,7 +45,7 @@ class InitiateCall extends voice_1.default {
|
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
47
|
await this.startConversation(event.params.channel, { events: [] });
|
|
48
|
-
this.log.warn('Confirming that the OB call can be started');
|
|
48
|
+
this.log.warn({ channel: event.params.channel, conv: this.conversation, data: this.get(this.conversation) }, 'Confirming that the OB call can be started');
|
|
49
49
|
return this.exitFlow();
|
|
50
50
|
}
|
|
51
51
|
case 'call': {
|