disableFeature Method

This method informs Fusion Service that a subset of available functionality must be disabled because the toolbar hasn't implemented it.

By default, the features sent by the getConfiguration API method are considered enabled. There's no return value with this method. The method parameters are described in the following table.

Parameter

Description

features

A string that contains the comma-separated feature names. For a list of features, see API Features.

callback

A method callback which returns results to the toolbar.

Here's sample code used to call the method:

<html>
<head>
<script type="text/javascript" src="http://domain:port/ora_support/js/mcaInteractionV1.js"> 
</script>
<script type="text/javascript">
 function disableOutgoingCall() {
      svcMca.tlb.api.disableFeature('OUTBOUND_CALL', function (response) {
        if (response.result == 'success') {
          alert('Success! Feature disabled!');
        } else {
          alert('Operation finished with error: ' + response.error);
        }
      });
    }</script>
</head>
<body>
<input ="button" value="Disable outgoing call" onclick="disableOutgoingCall()"/>
</body>
</html>