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
Admin User 7336Admin User 7336 

Custom softphone implementation with Lightning Components

We have been working on a custom softphone implementation for Lightning Service Console. The Lightning component we created has been added to Console as Utility Bar’s custom Lightning component. This means that we did not wrap the component with a Visualforce page and we did not create a Call Center.
Problem is with click2dial functionality. We’ve found this tutorial:
When we added ‘/support/api/40.0/lightning/opencti_min.js’ to the Lightning component we get a Javascript error ‘Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters’.
We have found following discussion:
Unfortunately we do not have a Visualforce to add ‘sfdcIframeOrigin’ parameter to URL.
Is it possible to use click2dial functionality within Lightning components which are not wrapped in Visualforce?
James LoghryJames Loghry

I came across the following component. It *looks* like, all you have to do is use it in your lightning component (no extra JavaScript needed).  I'm unable to test it out though to confirm.

James LoghryJames Loghry
Keep in  mind you'll want to make sure your utility bar lightning component has been updated to the latest API version (41).