@twilio/flex-sdk
    Preparing search index...

    Class StartVoiceTaskTransfer

    Transfers a voice task to a target worker or a queue.

    The unique identifier (SID) of the task to be transferred.

    The unique identifier (SID) of the worker or the queue to transfer the task to.

    Optional configuration parameters for customizing the task transfer process.

    A promise that resolves to a Task object, representing the transferred task.

    import { createClient } from "@twilio/flex-sdk";
    import { StartVoiceTaskTransfer } from "@twilio/flex-sdk/actions/Voice";

    async function transferVoiceTask() {
    const client = await createClient("SDK_TOKEN");
    const startVoiceTaskTransfer = new StartVoiceTaskTransfer("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    const transferredTask = await client.execute(startVoiceTaskTransfer);
    return transferredTask;
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<Task>