+ Start a Discussion
Alexander KrykunAlexander Krykun 

OPEN CTI ClickToDial() function does not response

I'm trying to use Ip Telephony and integrate Twilio in Salesforce
So now the issue is how to enable click to dial option
I have already have call center configured and embedded iframe is shown up 
 Iframe -its  a visual force page  with button that should enable click to dial option and it have callback that should respons wether all ok or not and pop up  alert wether its enabled or not 
But when I'm clicking on the "enable click to dial" button nothing happens
No phones enabled to be dialed no any alerts, no exaptions in console, so callback event does not invoked

Code mark up

<apex:page controller="TwilioClientController" showHeader="false" >
   <script type="text/javascript" src="//static.twilio.com/libs/twiliojs/1.2/twilio.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="/support/api/37.0/interaction.js"></script>
function enableClickToDial() {
    sforce.interaction.cti.enableClickToDial(function (response) {
        if (response.result) {
            alert('Click to dial was enabled.');
        } else {
           alert('Click to dial was not enabled.');
<button onclick="enableClickToDial();">enable click to dial</button>

Similar example from open cti api 

User-added image

Alexander KrykunAlexander Krykun
No, Nothing changed, The point is it doesnt work not only in iframe within salesforce, but on pure page  on force.com site too