Monitors a provided ongoing call of another agent.
The taskSid of the task to monitor the call for.
The reservationSid of the task to monitor the call for.
Optional configuration parameters for customizing the monitor call process.
A promise that resolves to a VoiceCall object, representing the call.
VoiceCall
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { MonitorCall } from "@twilio/flex-sdk/actions/Voice";async function example() { const client = await createClient("SDK_TOKEN"); const monitorCall = new MonitorCall("WTXXXXXXXXXXXXXXXXXXXXXXXXX", "WRXXXXXXXXXXXXXXXXXXXXXXXXX"); const call = await client.execute(monitorCall);} Copy
import { createClient } from "@twilio/flex-sdk";import { MonitorCall } from "@twilio/flex-sdk/actions/Voice";async function example() { const client = await createClient("SDK_TOKEN"); const monitorCall = new MonitorCall("WTXXXXXXXXXXXXXXXXXXXXXXXXX", "WRXXXXXXXXXXXXXXXXXXXXXXXXX"); const call = await client.execute(monitorCall);}
Optional
Monitors a provided ongoing call of another agent.
Param: taskSid
The taskSid of the task to monitor the call for.
Param: reservationSid
The reservationSid of the task to monitor the call for.
Param: options
Optional configuration parameters for customizing the monitor call process.
Returns
A promise that resolves to a
VoiceCallobject, representing the call.Throws
FlexSdkError with the following error code(s):
Example