/mcpDescription Value Message Type Request to subscribe to XMPP presence 9 PRESENCE Request to disconnect the XMPP connection. This request attempts to unsubscribe the application from all nodes to which it subscribed during the session and then disconnects the session. 11 DISCONNECT_REQ For example, a postMessage call to send the agent ID is as follows: message = "1|1001001" // 1 - type: ID, 1001001 - agent ID tunnelFrame.postMessage(message, tunnelOrigin); // where tunnelFrame is the frame // corresponding to the iframe hosting // the EventTunnel and tunnelOrigin is // the URL of the EventTunnel i.e. // http://<host>:<port> where host is // the host of the Cisco Finesse // server and port is the port of // the Cisco Finesse Notification // Service, either 7071 for http or // 7443 for https Be sure to also wire up a callback to receive messages using postMessage from the EventTunnel frame, for example: if (window.addEventListener) { //Firefox, Opera, Chrome, Safari window.addEventListener("message", cb, false); } else { //Internet Explorer window.attachEvent("onmessage", cb); } where cb is the callback that handles any messages received using postMessage and that can parse the messages sent by the EventTunnel. Connect to XMPP over TCP Any third party XMPP client can connect to the Finesse Notification Service through TCP sockets for sending and receiving notifications. You can connect to ports 5222 (non-secure connection) and 5223 (secure connection). Cisco Finesse, Release 12.5(1) onward, the 5222 port (non-secure connection) is disabled by default. Set the utils finesse set_property webservices enableInsecureOpenfirePort to true to enable this port. For more information, see Service Properties section in Cisco Finesse Administration Guide at https://www.cisco.com/c/en/us/support/customer-collaboration/finesse/products-maintenance-guides-list.html. Note Connect to Secure Port 5223 over SSL/TLS Third party clients need to add the Finesse Notification certificate to their respective trust stores. Finesse Notification Service shares the same certificate with Cisco Finesse Tomcat. To download the certificate: 1. Sign in to the Cisco Unified Operating System Administration through the URL (https://FQDN:8443/cmplatform, where FQDN is the fully qualified domain name of the primary Finesse server and 8443 is the port number). 2. Click Security > Certificate Management. Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 374 Cisco Finesse Notifications Connect to XMPP over TCP