onOutgoingEvent Method

The toolbar calls this method to register the callback listener for Fusion Service which triggers an outgoing communication event. Using this callback Fusion Service passes the information required for the toolbar to perform the outgoing event.

Here's the parameters for this method:

Parameter

Description

channel

Name of the channel for which the method is called.

appClassification

Name of the application classification defined for the current toolbar. If this parameter is passed as null, it's assumed that there are no application classifications. For a list of ready to use values, see Application Classification Code.

callback

Function used by Fusion Service on the toolbar which indicates receipt of an Fusion Service event.

channelType

The type of channel for which the method is being called. For instance, if the channel is PHONE and the channelType isn't provided, the default value is set to ORA_SVC_PHONE. For more information, see Channel Type Data.

The response passed in the callback has attributes with system token names, such as SVCMCA_ANI, SVCMCA_EMAIL, SVCMCA_CONTACT_ID, and SVCMCA_CONTACT_NAME. There are no returns.

Here's sample code 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 onOutgoingEvent() {
      svcMca.tlb.api.onOutgoingEvent('PHONE','ORA_SERVICE', function (response) {
        console.log('Calling: '+response.SVCMCA_ANI);
        console.log('Contact name: '+response.SVCMCA_CUSTOMER_NAME);
        alert('Initiating outgoing call, see information in the log.');
      },'ORA_SVC_PHONE');
    }d>
<body>
<input type="button" value="Register outcall listener" onclick="onOutgoingEvent()"/>
</body>
</html>