Updated on 2023-09-27 GMT+08:00

Switching Between Audio and Video Calls

  • Identifier

    AgentEvent_MediaSwith

  • Function

    In the scenario where an audio call is switched to a video call, the agent invokes the audio and video switchover interface and sets the media type to video. After the interface is successfully invoked, the agent receives the event that an audio call is switched to a video call. If reason is set to 0, the IVR returns an event successfully.

  • Additional information

    reason indicates the switchover reason code. The value 0 indicates success, and other values indicate failure.

    caller indicates the calling number.

    called indicates the called number.

    callId indicates the unique ID of the call.

    mediaType indicates the media type.

  • Example

    {"eventType":"AgentEvent_MediaSwith","workNo":"111","content":{"callid":"1603286369-16773","reason":0,"caller":"","mediaType":3,"called":"88022","jsonKey":["callid","reason","caller","mediaType","called"]},"jsonKey":["eventType","workNo","content"]}