Skip to main content


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

Sending Requests to the CTI server

Updated on October 6, 2021

All requests from the CTI toolbar are sent to the CTI server using the OpenCTI Desktop framework that is invoked from the JavaScript calls. You can use the JavaScript functions and implement them to pass request information in a CTI server-specific format.

For new implementations, copy the required JavaScript functions from the OpenCTI interface JavaScript pega_cti_desktopApi.js file into your implementation file.

For example, if you want to implement an Answer request, copy the answerCall function in the OpenCTI interface JavaScript pega_cti_desktopAPI.js file into your implementation JavaScript file.

  1. Copy the answerCall activity in the ChannelServices-Embed-Apapter-OpenCTI class into the adapter implementation class.

    The description field lists the device number (DN) and the CallId as the properties, which are populated on the adapter page for this request. The activity would be implemented to make a call to the CTI server using the DN and CallId to answer the call.
  2. Ensure that the properties required for the implementation request activity are already there on the adapter class.

    These properties are documented in the description field of the OpenCTI adapter API activity.

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us