• Admin User 7336
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
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: https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_enableclicktodial_lex.htm
 
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: https://developer.salesforce.com/forums/?id=9060G000000MOplQAG
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?
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: https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/sforce_api_cti_enableclicktodial_lex.htm
 
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: https://developer.salesforce.com/forums/?id=9060G000000MOplQAG
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?