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
Sunil Wadeyar 4Sunil Wadeyar 4 

setting up load balanced call center in salesforce

Hi,
I have a cti adapter url like https://instance.xyz.com/callcenter . This is a load balancer url. This actually redirects request to https://instance1.xyz.com/callcenter or https://instance2.xyz.com/callcenter.

The issue is runApex, ClickToDial features are not working because in interactionFramework.js there is a security check with below code 
if (b.origin.toLowerCase() !== a.sofphoneEventOriginUrl)
    a.doPostMessage(null , null , LC.getLabel("InteractionApi", "InvalidSoftphoneIframeOrigin"));

Here b.origin will have either https://instance1.xyz.com/callcenter or https://instance2.xyz.com/callcenter and a.sofphoneEventOriginUrl will have https://instance.xyz.com/callcenter

How to setup load balanced call center in salesforce?