Configuring event subscription
The Computer Telephony Integration (CTI) server sends events to the OpenCTI adapter to indicate a change in the status of the extension or of the CSR. Implement the SubscribeForEvents activity to subscribe to events and the UnSubscribeForEvents to stop event subscription.
The following activities are used in the OpenCTI implementation class to manage events:
- SubscribeForEvents activity
- The SubscribeForEvents activity is called to send a request to start an event subscription for a device when a user tries to monitor an extension.
- UnSubscribeForEvents activity
- This activity is called to send the request to stop event subscription for a device when a CSR logs out.
- In the header of Dev Studio, search for the SubscribeForEvents activity in the OpenCTI adapter class.
- Copy the activity into the implementation class and add the Pega Platform version 8.7 integration connector to subscribe to the event for a device.
- On the Activity page, add the properties that are required
for your adapter to subscribe to events for devices.The following table shows the properties of the SubscribeForEvents activity:
Properties of the SubscribeForEvents activity
Some CTI servers do not require AgentID and AgentPassword for monitoring. In such cases, as the OpenCTI developer, you can ignore these properties when subscribing to events.Property Name Property Name DN The device number on which the event is subscribed AgentID The agent ID logged into the extension AgentPassword The password configured for that agent ID - In the header of Dev Studio, search for the UnSubscribeForEvents activity in the OpenCTI adapter class.
- Copy this activity to the implementation class and add the Pega Platform version 8.7 integration connector to unsubscribe from events
for devices.The following table shows te properties of the UnSubscribeForEvents activity. You can see these properties on the adapter step page of the clipboard.
Properties of the UnSubscribeForEvents activity
Property Name Property Name DN The device number for which the event is subscribed AgentID The agent ID logged in to the extension AgentPassword The password configured for that agent ID If unsubscribing from events for a device fails, Pega Call displays an error.
Previous topic Initializing the OpenCTI adapter Next topic Processing events received from the CTI server