@wildix/wim-voicebots-client > SendTransferCommand
SendTransferCommand class
Transfers the call to the specified context and extension, and terminates the voice bot session.
Signature:
export declare class SendTransferCommand extends SendTransferCommand_base
Extends: SendTransferCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { VoiceBotsClient, SendTransferCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
// const { VoiceBotsClient, SendTransferCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
const client = new VoiceBotsClient(config);
const input = { // SendTransferInput
context: "STRING_VALUE", // required
extension: "STRING_VALUE", // required
sessionId: "STRING_VALUE", // required
};
const command = new SendTransferCommand(input);
const response = await client.send(command);
// {};