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
john bondjohn bond 

CTI Toolkit 4.01 Error: SoftPhone not refreshing

Hi All,


I am integrating voice platform with salesforce using CTI Toolkit 4.01.

The adapter is working wine but after some time it stops refreshing. For eg. When agent clicks on “Line 1” nothing happens but when he clicks on “Line 1“ and then manually refreshes the browser then only he can see Dial pad.

I was not able to find anything useful in log files. Please suggest some steps for it.



john bondjohn bond



I was trying to find the solution for this one….. and found something…


In UpdateNotificationSender.cs file function sendNotificationMessage; line


Utils.DoResponse(targetContext.Response, msgQueue.Dequeue());

Never getting executed because of the loop above it.



while (!cancelMsgSenderThread && (targetContext == previousTargetContext || msgQueue.Count == 0))



It seems "targetContext == previousTargetContext" always return true and it never gets out of the loop.


targetContexte never seems to get updated and that is because we are not getting keepalive message from salesforce:

if (requestRawUrl.StartsWith(Constants.KeepAlivePath))


 If someone can share when should we get keepalive message or is there something I am missing out?