@onereach/step-voice 7.0.21-voiceagents.2 → 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 +1 -0
- package/dst/Transfer.js +2 -1
- package/package.json +1 -1
- package/dst/Voice Agent.d.ts +0 -8
- package/dst/Voice Agent.js +0 -13
package/dst/Transfer.d.ts
CHANGED
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
package/dst/Voice Agent.d.ts
DELETED
package/dst/Voice Agent.js
DELETED
|
@@ -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;
|