/mcpC H A P T E R 6 Cisco Unity Connection Messaging Interface (CUMI) API -- Using the CUMI API for Sending Notifications • About Notifications, on page 25 • Getting Started, on page 25 • Comet Event Structure , on page 26 About Notifications CUMI supports Comet notifications for message operations on the Inbox and Deleted folders. • Getting Started These are the basic steps to get up and running with Comet: 1. Start Jetty: Activate the Connection Jetty service by browsing to the Cisco Unity Connection Serviceability page and selecting Services. Find Connection Jetty in the list and select the Activate button. 2. Request Notifications: Clients need to request notifications so that the Connection server knows it should start publishing Comet events for the current authenticated user: $.ajax({ type: "POST", contentType: "application/xml; charset=utf-8", url: "/vmrest/mailbox?method=requestnotification", data: "{}", dataType: "text", success: function(subscriptionId) { gSubscriptionId = subscriptionId; alert("Requested events for mailbox, subscriptionId=" + subscriptionId); } }); This returns a subscriptionId that must be used to get Comet notifications for this user (rather than the userID, for security reasons). Cisco Unity Connection Messaging Interface (CUMI) API 25
