Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Subscribing to events

Updated on October 6, 2021

Events are sent from the CTI server to indicate a change in the status, either of the extension or of the agent.

After you create your own implementation, override the Pega Call bundle rule in your implementation ruleset and add your implementation JavaScript file to the existing framework so that your javascript file gets loaded with the Pega Call toolbar.

The SubscribeForEvents activity is called to send a request to start an event subscription for a dewhen a user tries to monitor an extension.

Note: For Simple Telephony, you might only need Alerting or Offering event which indicates a new inbound call.

The following are the properties available to the SubscribeForEvents activity. You can see these properties on the adapter step page of the clipboard.

Properties of the SubscribeForEvents activity

DNThe device number on which the event is subscribed.
AgentIDThe agent ID logged in to the extension.
AgentPasswordThe password configured for that agent ID.
  1. In header of Dev Studio, search for the SubscribeForEvents activity in the OpenCTI adapter class.

  2. Copy the activity into the implementation class add the Pega Platform integration connector to subscribe for the event for a device.

  3. In the activity page, add any steps that is required for the adapter to subscribe for events for the user identified. For more information on the properties, see the property table.

  4. If the subscription of the device fails, then an error should be returned. For more information, see Handling errors.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us