Asynchronous Calls with Open CTI

Open CTI lets you issue asynchronous calls. Asynchronous calls allow the client-side process to continue instead of waiting for a callback from the server.

To issue an asynchronous call, you must include an extra parameter with the API call, referred to as a callback function. Once the result is ready, the server invokes the callback method with the result.

Asynchronous syntax:

In Salesforce Classic:

In Lightning Experience:

In Salesforce Classic:

In Lightning Experience:

The call result depends on the execution context. For example, calling setSoftphoneWidth() in the standard Salesforce application has no effect, but calling setSoftphoneWidth() in the Salesforce console resizes the width of the softphone.