@onereach/step-voice 7.0.2-VOIC1438.1 → 7.0.2-VOIC1438.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 +8 -14
- package/dst/Send DTMF.js +4 -2
- package/package.json +1 -1
package/dst/Initiate Call.js
CHANGED
|
@@ -164,11 +164,10 @@ class InitiateCall extends voice_1.default {
|
|
|
164
164
|
id: call.id,
|
|
165
165
|
from: botNumber,
|
|
166
166
|
to: endUserNumber,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
afterDelay: 500,
|
|
167
|
+
meetOps: {
|
|
168
|
+
dtmfPin: '630622795#',
|
|
169
|
+
durationMs: 60 * 60 * 1000, // 3 minutes
|
|
170
|
+
},
|
|
172
171
|
headers: customHeaders,
|
|
173
172
|
spoofCallerId: {
|
|
174
173
|
enableSpoofCallerId,
|
|
@@ -203,16 +202,11 @@ class InitiateCall extends voice_1.default {
|
|
|
203
202
|
});
|
|
204
203
|
}
|
|
205
204
|
else {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
params
|
|
210
|
-
}) */
|
|
211
|
-
const command = {
|
|
212
|
-
name: 'meet-ops',
|
|
205
|
+
await this.thread.emitAsync({
|
|
206
|
+
target: 'provider',
|
|
207
|
+
name: 'out/voice/originate/v2',
|
|
213
208
|
params
|
|
214
|
-
};
|
|
215
|
-
await this.sendCommands(call, [command]);
|
|
209
|
+
});
|
|
216
210
|
}
|
|
217
211
|
});
|
|
218
212
|
}
|
package/dst/Send DTMF.js
CHANGED
|
@@ -41,8 +41,10 @@ class SendDTMF extends voice_1.default {
|
|
|
41
41
|
name: 'meet-ops',
|
|
42
42
|
params: {
|
|
43
43
|
dtmf,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
meetOps: {
|
|
45
|
+
dtmfPin: dtmf,
|
|
46
|
+
durationMs: 50 * 60 * 1000, // 3 minutes
|
|
47
|
+
},
|
|
46
48
|
tonesDuration: +tonesDuration,
|
|
47
49
|
beforeDelay: +beforeDelay,
|
|
48
50
|
afterDelay: +afterDelay
|