no LIVE Callbacks found
Posted:
Mon Feb 01, 2021 6:49 pm
by dspaan
We are running into a problem where we are getting below screen. This happens when we are in a RATIO campaign with the setting Scheduled Callbacks Force Dial=Y. Once you login your are forced to dial your callbacks, that works fine until there are no more callbacks and then you get this screen. But there are regular leads left in the hopper to dial. I've never seen this screen and you can't do anything but close your browser tab.
Does anyone know why this happens and how to prevent it?
I did some checking but it only happens when we use translation. When using standard English this does not occur. We recently translated some remaining phrases with Google and i suspect this started happening since then.
Re: no LIVE Callbacks found
Posted:
Mon Feb 01, 2021 8:57 pm
by jjohnson78
Yes, it appears to be translation-related.
The issue is that the span that displays forced callbacks is displayed under a specific circumstance. Namely that if the message returned from the AJAX call that checks how many callbacks are left does NOT return a message that pattern matches the phrase "Error: no", then the forced callback span is displayed.
The catch is that the full error message is "Error: no live callbacks found" and the phrase "no live callbacks found" is being translated into Dutch (or whatever language is being used), so instead of "Error: no....", it's coming back as "Error: geen...." in your case, which does NOT pattern match and therefore triggers the callback span to be displayed, but without a callback (which would have the link to actually dial and force the span to hide itself again).
Try making the following change and see if this fixes it. In vicidial.php there is a function "VieWCBForcedDialInfO". It should start at line 17331 in your version. Within that function you'll see the below lines of code. Cut out the portion I have in red text (the last line), which is line 17367. Simply by removing the "no" should fix your issue, I hope. If so, I will pass it on to Matt F.
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&disable_alter_custphone=" + disable_alter_custphone + "&campaign=" + campaign + "&callback_id=FORCED&manual_dial_filter=" + agentcall_manual + "&stage=<?php echo $HCwidth ?>";
xmlhttp.open('POST', 'vdc_db_query.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(RAview_query);
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
var temp_response = xmlhttp.responseText;
// alert(xmlhttp.responseText);
var regCDS = new RegExp("ERROR: no","ig");
Re: no LIVE Callbacks found
Posted:
Sat Feb 20, 2021 4:13 pm
by dspaan
Hey Johnson,
Thanks for this, your proposed fix solves the problem. I think this has to be posted in mantis?
Re: no LIVE Callbacks found
Posted:
Mon Feb 22, 2021 11:06 am
by mflorell
This fix has been been committed to svn/trunk, revision 3356. Please upgrade and test for confirmation this has been fixed.