Sending Requests to the CTI server
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.
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.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.
Previous topic Configuring the OpenCTI desktop framework Next topic Subscribing to events