undefined in callback list

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

undefined in callback list

Postby heinz » Mon Apr 14, 2008 10:35 am

Hi,

once in a while our agents have entries in their callback list where every field except the comments-field says "undefined". Because of the comments-field I could find out the lead_id and check the entries in vicidial_callbacks, vicidial_list and vicidial_log. Everything looks fine, no unusual data in these tables.

Does anyone have a clue what the problem could be?

Thanks,
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Mon Apr 14, 2008 12:33 pm

astGUIclient version?

browser version?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Tue Apr 15, 2008 3:08 am

astguiclient 2.0.3
Firefox 2.0.0.13
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Tue Apr 15, 2008 8:34 am

There were a few fixes to Callbacks made in the 2.0.4 release. Please try upgrading to 2.0.4 or 2.0.4.1rc1
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Thu Jan 22, 2009 11:07 am

I upgraded to 2.0.4 and still ran into this problem.
Now I might found out what is going on (but I am not sure):

The agents copy and paste the comment from the lead into the comments-field of the callbacks. That puts some new lines "\n" into the callbacks comments-field. In vdc_db_query.php around line 1734
Code: Select all
$CBcomments =      trim("$row[3]");

removes only "\n" at the beginning and end of the string.
In vicidial.php around line 3045
Code: Select all
var all_CBs_array=all_CBs.split("\n");

splits the array with "\n" as delimiter. That's how the undefined rows get into the callback list.

Has anyone an idea how to solve this issue?

Thanks,
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Fri Jan 23, 2009 6:27 pm

Newlines are actually converted to an ASCII string for single-line storage and then they are re-formed when they go back to the agent screen. We do multi-line comments all the time without any issues.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 293 guests