enableClickToDial() for Salesforce Classic

Enables click-to-dial.

NameTypeDescription
callbackfunctionJavaScript method executed when the API method call is completed.

This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.

NameTypeDescription
resultbooleantrue if click-to-dial was enabled, false if click-to-dial wasn’t enabled.
errorstringIf the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.