@onereach/step-voice 7.0.9-VOIC1575.1 → 7.0.9-VOIC1575.12

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.
@@ -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': {
@@ -100,7 +101,46 @@ class InitiateCall extends voice_1.default {
100
101
  type: asr.serverSettings.engine
101
102
  }
102
103
  }]
103
- : []
104
+ : [],
105
+ /* {
106
+ name: 'whisper.hold',
107
+ params: {
108
+ id: callALegId
109
+ }
110
+ }, */
111
+ /* {
112
+ name: 'playback',
113
+ params: {
114
+ 'sections': [
115
+ {
116
+ 'text': '<speak>This is a live transfer from the automated system. Stand by for connection.</speak>',
117
+ 'url': '',
118
+ 'bargeInVoice': false,
119
+ 'bargeInKeypad': false,
120
+ 'textType': 'ssml',
121
+ 'provider': 'polly',
122
+ 'voiceId': 'Joanna',
123
+ 'engine': 'standard',
124
+ 'isStream': false,
125
+ },
126
+ ],
127
+ 'useWhisperFeature': false,
128
+ 'sensitiveData': {},
129
+ resumeAfterGc: true,
130
+ }
131
+ }, */
132
+ /* {
133
+ name: 'whisper.hold_off',
134
+ params: {
135
+ id: callALegId
136
+ }
137
+ }, */
138
+ {
139
+ name: 'whisper.transfer',
140
+ params: {
141
+ id: callALegId
142
+ }
143
+ },
104
144
  ]);
105
145
  return this.exitStep('success');
106
146
  }
@@ -179,7 +219,7 @@ class InitiateCall extends voice_1.default {
179
219
  timeout: originateTimeout,
180
220
  version: 2,
181
221
  sessionExpireTime: this.session.expireTime,
182
- useWhisperFeature: true
222
+ useWhisperFeature: false
183
223
  };
184
224
  if (otherCallRef) {
185
225
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.9-VOIC1575.1",
3
+ "version": "7.0.9-VOIC1575.12",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",