@onereach/step-voice 7.0.9-VOIC1575.8 → 7.0.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 +2 -42
- package/dst/Join Conference.d.ts +1 -0
- package/dst/Join Conference.js +5 -2
- package/dst/Say Message.js +1 -2
- package/package.json +1 -1
package/dst/Initiate Call.js
CHANGED
|
@@ -100,46 +100,7 @@ class InitiateCall extends voice_1.default {
|
|
|
100
100
|
type: asr.serverSettings.engine
|
|
101
101
|
}
|
|
102
102
|
}]
|
|
103
|
-
: []
|
|
104
|
-
{
|
|
105
|
-
name: 'whisper.hold',
|
|
106
|
-
params: {
|
|
107
|
-
id: headers && headers['X-Leg-A']
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'playback',
|
|
112
|
-
params: {
|
|
113
|
-
'sections': [
|
|
114
|
-
{
|
|
115
|
-
'text': '<speak>This is a live transfer from the automated system. Stand by for connection.</speak>',
|
|
116
|
-
'url': '',
|
|
117
|
-
'bargeInVoice': false,
|
|
118
|
-
'bargeInKeypad': false,
|
|
119
|
-
'textType': 'ssml',
|
|
120
|
-
'provider': 'polly',
|
|
121
|
-
'voiceId': 'Joanna',
|
|
122
|
-
'engine': 'standard',
|
|
123
|
-
'isStream': false,
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
'useWhisperFeature': false,
|
|
127
|
-
'sensitiveData': {},
|
|
128
|
-
resumeAfterGc: true,
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'whisper.hold_off',
|
|
133
|
-
params: {
|
|
134
|
-
id: headers && headers['X-Leg-A']
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'whisper.transfer',
|
|
139
|
-
params: {
|
|
140
|
-
id: headers && headers['X-Leg-A']
|
|
141
|
-
}
|
|
142
|
-
},
|
|
103
|
+
: []
|
|
143
104
|
]);
|
|
144
105
|
return this.exitStep('success');
|
|
145
106
|
}
|
|
@@ -217,8 +178,7 @@ class InitiateCall extends voice_1.default {
|
|
|
217
178
|
: undefined,
|
|
218
179
|
timeout: originateTimeout,
|
|
219
180
|
version: 2,
|
|
220
|
-
sessionExpireTime: this.session.expireTime
|
|
221
|
-
useWhisperFeature: false
|
|
181
|
+
sessionExpireTime: this.session.expireTime
|
|
222
182
|
};
|
|
223
183
|
if (otherCallRef) {
|
|
224
184
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
package/dst/Join Conference.d.ts
CHANGED
package/dst/Join Conference.js
CHANGED
|
@@ -6,7 +6,7 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
|
|
|
6
6
|
class JoinConference extends voice_1.default {
|
|
7
7
|
async runStep() {
|
|
8
8
|
const call = await this.fetchData();
|
|
9
|
-
const { conferenceName, stayInConference, volumeIn, volumeOut } = this.data;
|
|
9
|
+
const { conferenceName, stayInConference, volumeIn, volumeOut, mute } = this.data;
|
|
10
10
|
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
11
11
|
switch (event.params.type) {
|
|
12
12
|
case 'hangup':
|
|
@@ -49,7 +49,10 @@ class JoinConference extends voice_1.default {
|
|
|
49
49
|
name: 'conference.start',
|
|
50
50
|
params: {
|
|
51
51
|
room: conferenceName,
|
|
52
|
-
flags: [
|
|
52
|
+
flags: [
|
|
53
|
+
call.vv >= 3 ? 'mandatory_member_endconf' : 'endconf',
|
|
54
|
+
...mute ? ['mute'] : []
|
|
55
|
+
],
|
|
53
56
|
stayInConference,
|
|
54
57
|
volumeIn,
|
|
55
58
|
volumeOut
|
package/dst/Say Message.js
CHANGED