Muting audio during recording

This API allows to mute the audio for a given time for a specified call. External applications can subscribe for call events and while the call is being recorded, the application can initiate muting the audio. The system will start dropping the corresponding audio data until a new API request arrives instructing the recorder to stop muting or until the end of the call. In most recording services, muting can be invoked separately on each channel (caller or called party).

This API function can be used to comply with the Payment Card Industry Data Security Standard (PCI DSS) and prevent recording sensitive information.

Request

<?xml version="1.0" encoding="UTF-8"?>

<VerbaApi>

<Request type="MuteChannel" id="1">

<Call id="1651d3c9-7bce-11e0-a220-005056c00008">

<State callerMuted="true" calleeMuted="false"/>

</Request>

</VerbaApi>

Use the State tag to control the muting. If you want to start the muting, set the corresponding side to true. If you want to stop the muting, set it to false.

Response

<?xml version="1.0" encoding="UTF-8"?>

<VerbaApi>

<Response code="0">

<Request type="MuteChannel" id="1"/>

</Response>

</VerbaApi>

Get the state of a call

It is also possible to get the state of a given call. In the response, the <State callerMuted=true> field means the call's audio is muted, <State callerMuted=false> means the audio is in normal state.

Request

<?xml version="1.0" encoding="UTF-8"?>

<VerbaApi>

    <Request type="GetMuteState" id="1">

        <Call id="b6a4a866-138f-11e6-9bec-001cc092f276"/>

    </Request>

</VerbaApi>

Response

<?xml version="1.0" encoding="UTF-8"?>

<VerbaApi>

   <Response code="0">

       <Request type="MuteState" id="1"/>

       <State callerMuted="false" calleeMuted="false"/>

   </Response>

</VerbaApi>