Since July 6, 2023, Atlassian has no longer been used for Release Notes or knowledge base articles.
* Find Release Notes here (https://support.mycontactcenter.net/app/articles/detail/a_id/23378/) and articles here (https://support.mycontactcenter.net/app/main).
* Authenticated Partners can access content here (https://support.mycontactcenter.net/cc/sso/authenticator/oauth/authorize/imcontrolpanel?redirect=main&source=mycontactcenter)


Javascript Examples

The following example demonstrates how to invoke the mute and unmute calls, and also how to process the response.
<!DOCTYPE html>
<html>
<body>
<button type="button" onclick="muteVoiceCall()">Mute Call</button>
<button type="button" onclick="unmuteVoiceCall()">Unmute Call</button>
<br/><br/>
<p id="actionInProgress"></p>
<p id="resultObject"></p>
<script>
function setActionInProgress(msg) {
document.getElementById("actionInProgress").innerHTML = msg;
}
function muteVoiceCall() {
setActionInProgress("muting call...");
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.readyState == 4) {
showResult(xhttp.responseText);
}
};
xhttp.open("POST", "{+}http://localhost:6500/cca/voicecall/mute+", true);
xhttp.send();
}
function unmuteVoiceCall() {
setActionInProgress("unmuting call...");
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.readyState == 4) {
showResult(xhttp.responseText);
}
};
xhttp.open("POST", "{+}http://localhost:6500/cca/voicecall/unmute+", true);
xhttp.send();
}
function showResult(resultText) {
var result = JSON.parse(resultText);
var uiItem = document.getElementById("resultObject");
uiItem.innerText = resultText;
if (result.errorCode == 0) {
uiItem.style.color = "green";
}
else {
uiItem.style.color = "red";
}
}
</script>
</body>
</html>








Since July 6, 2023, Atlassian has no longer been used for Release Notes or knowledge base articles.
* Find Release Notes here (https://support.mycontactcenter.net/app/articles/detail/a_id/23378/) and articles here (https://support.mycontactcenter.net/app/main).
* Authenticated Partners can access content here (https://support.mycontactcenter.net/cc/sso/authenticator/oauth/authorize/imcontrolpanel?redirect=main&source=mycontactcenter)