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
Dogan Turkcan 9Dogan Turkcan 9 

Lightning Open CTI

I installed the package as described in url https://developer.salesforce.com/page/Lightning_Open_CTI.

When i try to login nothing changes on the phone panel.

When i test the login page it receives the following error on Chrome.
Log In
This page has an error. You might just need to refresh it. Action failed: c$ctiLoginPanel$controller$handleLogin [Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.] Failing descriptor: {c$ctiLoginPanel$controller$handleLogin}

When i try it on firefox it receives the following error.

This page has an error. You might just need to refresh it. Action failed: c$ctiLoginPanel$controller$handleLogin [An invalid or illegal string was specified] Failing descriptor: {c$ctiLoginPanel$controller$handleLogin}

User-added imageUser-added imageUser-added image
SandhyaSandhya (Salesforce Developers) 
Hi,

Please consider below points.


If you don’t see the softphone in your app or the softphone doesn’t launch, verify the CTI adapter URL is correct. To edit the CTI Adapter URL:
In your Salesforce org, go to Setup and enter Call Centers in the Quick Find box, then click Call Centers.
Click Edit next to the Demo Call Center Adapter and make sure that the CTI Adapter URL points to the absolute path of the Visualforce page called demoAdapterPage. For example, the following URLs are valid:
https://<myDomain>.my.salesforce.com/apex/demoAdapterPage
https://<myDomain>.lightning.force.com/apex/demoAdapterPage
https://<myDomain>.lightning.<yourInstance>.force.com/apex/demoAdapterPage
Click Save. You may have to log out and log back in, in order for these changes to be applied.

Hope this helps you!

Thanks and Regards
Sandhya