Documentation

Support

Vivox Core SDK

Vivox Core SDK

User-to-user muting in all channels

How to mute one or more users in all channels.
Read time 1 minuteLast updated 20 hours ago

To mute one or more users in all channels, use
vx_req_account_control_communications
. You can call this request before any session is established, because it requires only the account handle of the muter or the user who wants to mute other users.
vx_req_account_control_communications
can support a list of users, which means that you can mute multiple users at a time. Separate the user URIs with "\n".
vx_req_account_control_communications_t* reqStruct;vx_req_account_control_communications_create(&reqStruct);reqStruct->account_handle = vx_strdup(“session handle”);reqStruct->operation = vx_control_communication_operation_block;reqStruct->user_uris = vx_strdup( “sip:.user1.@realm.vivox.com\n” “sip.userN.@realm.vivox.com”);int ret = vx_issue_request3((vx_req_base_t*) reqStruct);
The response contains successfully muted users from the specified list. If a user is already muted or is cross-muted by a previous request, then the response does not contain their URI. The following table details the possible operations for this request:
OperationFunction
Mutevx_control_communications_operation_mute = 4
Remove mute or unmutevx_control_communications_operation_unmute = 5
Get a list of muted usersvx_control_communications_operation_mute_list = 6
Remove mute from all usersvx_control_communications_operation_clear_mute_list = 7

User-to-user muting in all channels • Vivox Core SDK • Unity Docs