function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkateswarlu ChVenkateswarlu Ch 

I added a vf console component footer area. We are using a 3rd party integration for CTI. I want to chek any call is Active on CTI softphone or not.

I added a vf console component  footer area. We are using a 3rd party integration for CTI. I want to chek any call is Active on CTI softphone or not. I have written below code. But it gives every time Null value even the call is Active.  Could you please help me || what steps we can do to check that condition in VF pages?


<apex:page >
    <apex:includeScript value="/support/console/24.0/integration.js"/>
     <script type="text/javascript">

          var callback = function (result) {
              alert('Active call object ids: ' + result.ids);
          };
          
     </script>
     
<apex:form id="form"> 
    <apex:pageBlock id="thePageBlock" mode="edit"> 
   
    <apex:pageBlockButtons location="top"> 
    <apex:commandButton onClick="sforce.console.cti.getCallObjectIds(callback);" value="Active"/> 
    </apex:pageBlockButtons> 
    </apex:pageBlock> 
</apex:form>

</apex:page>