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

    Class EndVoiceCallForAll

    Ends a call for all participants.

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

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

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

    async function endVoiceCallForAll() {
    const client = await createClient("SDK_TOKEN");
    const endVoiceCallForAll = new EndVoiceCallForAll("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    const endedTask = await client.execute(endVoiceCallForAll);
    return endedTask;
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<Task>