@onereach/step-voice 7.0.21-voiceagents.3 → 7.0.21

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/Transfer.d.ts CHANGED
@@ -29,6 +29,7 @@ interface INPUT {
29
29
  sipPassword?: string;
30
30
  sipProfile?: SIP_PROFILE;
31
31
  muteRecording?: boolean;
32
+ disableRingback?: boolean;
32
33
  }
33
34
  interface EVENT extends VoiceEvent {
34
35
  originateDisposition?: string;
package/dst/Transfer.js CHANGED
@@ -52,7 +52,7 @@ class Transfer extends voice_1.default {
52
52
  return this.exitFlow();
53
53
  });
54
54
  this.triggers.otherwise(async () => {
55
- const { phoneNumber, sessionTimeout, destination, sipHeaders = [], sipHost, sipUser, sipPassword, sipProfile, refer, withReplaces, replacesConversation, replacesConversationThread, gatewaySettingsMode, from, muteRecording, } = this.data;
55
+ const { phoneNumber, sessionTimeout, destination, sipHeaders = [], sipHost, sipUser, sipPassword, sipProfile, refer, withReplaces, replacesConversation, replacesConversationThread, gatewaySettingsMode, from, muteRecording, disableRingback, } = this.data;
56
56
  const destinationIsSip = (/^sip:/i).test(destination);
57
57
  const destinationIsUser = (/^user:/i).test(destination);
58
58
  const callerID = phoneNumber;
@@ -114,6 +114,7 @@ class Transfer extends voice_1.default {
114
114
  gateway,
115
115
  timeout,
116
116
  maxLoops,
117
+ ...(disableRingback && { ringback: 'silence_stream://-1' }),
117
118
  ...(replacesDialog && { replacesDialog }),
118
119
  }
119
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.21-voiceagents.3",
3
+ "version": "7.0.21",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",
@@ -1,8 +0,0 @@
1
- import VoiceStep from './voice';
2
- interface INPUT {
3
- url: string;
4
- }
5
- export default class VoiceAgent extends VoiceStep<Partial<INPUT>> {
6
- runStep(): Promise<void>;
7
- }
8
- export {};
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const voice_1 = tslib_1.__importDefault(require("./voice"));
5
- class VoiceAgent extends voice_1.default {
6
- async runStep() {
7
- const { url = "wss://bot.svc.devvoice-voiceone.api.onereach.ai/ws" } = this.data;
8
- const call = await this.fetchData();
9
- await this.sendCommands(call, [{ name: 'ws_pipe', params: { url } }]);
10
- this.exitStep('next');
11
- }
12
- }
13
- exports.default = VoiceAgent;