You need to sign in to do that
Don't have an account?
Venkateswarlu 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>
<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>