McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 10

↗ View in doc context
page
10
source
unity-connection/rest-api/cuni/cuni.md
chunk_id
unity-connection::rest-api::cuni::cuni::5

Calendar expiration = java.util.Calendar.getInstance(); com.cisco.unity.messageeventservice.MessageEventServiceStub.Subscribe s = new com.cisco.unity.messageeventservice.MessageEventServiceStub.Subscribe(); // Set subscription expiry to two months from now. expiration.add(Calendar.MONTH, 2); s.setExpiration(expiration); // Specify the users we're interested in, which is just the operator for this example. ArrayOfString resourceList = new ArrayOfString(); resourceList.addString("operator"); s.setResourceIdList(resourceList); s.setExpiration(expiration); // Set the callback information - a username and password can be specified, but they are optional. MessageEventServiceStub.CallbackServiceInfo c = new MessageEventServiceStub.CallbackServiceInfo(); c.setCallbackServiceUrl(callbackUrl); c.setPassword(callbackPassword); c.setUsername(callbackUserId); s.setCallbackServiceInfo(c); // Subscribe! SubscribeResponse r = stub.subscribe(s); CUNI Subscriptions will be removed from Cisco Unity Connection server database, if you perform a refresh upgrade. Make sure to perform re-subscription after successful upgrade of the cluster. Note Processing Notification Events Events will be delivered via HTTP POST to the callback URL that was provided in the call to subscribe. Cisco Unity Connection Release 12.5(1) SU3 and later, CUNI supports HTTPS for callback URL. For SSL communication user has the option to choose between Self-signed Certificates and Third Party CA signed Certificates from Cisco Unified Mobility Advantage server. Make sure to follow below mentioned steps for Third Party CA signed certificates: 1. Upload Third Party CA signed certificates in tomcat trust of Unity Connection server. 2. Restart Tomcat and Notifier services after adding certificates. Note Description Event Type This event is sent when a new message arrives in the Inbox folder. NEW_MESSAGE This event is sent when a message is marked as read in the Inbox folder. SAVED_MESSAGE Cisco Unity Connection Notification Interface (CUNI) API 6 Cisco Unity Connection Notification Interface (CUNI) API -- Subscribing to and Processing Notification Events Processing Notification Events