Fixed bug in vicidial.php for agent log entries during manual dial calls
git-svn-id: svn://192.168.202.10@1023 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -179,10 +179,11 @@
|
||||
# 81119-1809 - webform backslash fix
|
||||
# 81124-2212 - Fixes blind transfer bug
|
||||
# 81126-1522 - Fixed callback comments bug
|
||||
# 81211-0420 - Fixed Manual dial agent_log bug
|
||||
#
|
||||
|
||||
$version = '2.0.5-96';
|
||||
$build = '81126-1522';
|
||||
$version = '2.0.5-97';
|
||||
$build = '81211-0420';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=184;
|
||||
$one_mysql_log=0;
|
||||
@@ -3116,12 +3117,15 @@ if ($ACTION == 'updateDISPO')
|
||||
$user_group = trim("$row[0]");
|
||||
}
|
||||
|
||||
# $stmt="INSERT INTO vicidial_agent_log (user,server_ip,event_time,campaign_id,pause_epoch,pause_sec,wait_epoch,user_group) values('$user','$server_ip','$NOW_TIME','$campaign','$StarTtime','0','$StarTtime','$user_group');";
|
||||
# if ($DB) {echo "$stmt\n";}
|
||||
# $rslt=mysql_query($stmt, $link);
|
||||
# if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00153',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
# $affected_rows = mysql_affected_rows($link);
|
||||
# $agent_log_id = mysql_insert_id($link);
|
||||
if ($auto_dial_level < 1)
|
||||
{
|
||||
$stmt="INSERT INTO vicidial_agent_log (user,server_ip,event_time,campaign_id,pause_epoch,pause_sec,wait_epoch,user_group) values('$user','$server_ip','$NOW_TIME','$campaign','$StarTtime','0','$StarTtime','$user_group');";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00153',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
$agent_log_id = mysql_insert_id($link);
|
||||
}
|
||||
|
||||
### CALLBACK ENTRY
|
||||
if ( ($dispo_choice == 'CBHOLD') and (strlen($CallBackDatETimE)>10) )
|
||||
|
||||
+11
-10
@@ -210,10 +210,11 @@
|
||||
# 81119-1811 - webform backslash fix
|
||||
# 81124-2213 - Fixes blind transfer bug
|
||||
# 81209-1617 - Added campaign web form target option and web form address variables
|
||||
# 81211-0422 - Fixed Manual dial agent_log bug
|
||||
#
|
||||
|
||||
$version = '2.0.5-189';
|
||||
$build = '81209-1617';
|
||||
$version = '2.0.5-190';
|
||||
$build = '81211-0422';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=53;
|
||||
$one_mysql_log=0;
|
||||
@@ -5627,16 +5628,16 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
xmlhttp.send(DSupdate_query);
|
||||
xmlhttp.onreadystatechange = function()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
if ( (xmlhttp.readyState == 4 && xmlhttp.status == 200) && (auto_dial_level < 1) )
|
||||
{
|
||||
// var check_dispo = null;
|
||||
// check_dispo = xmlhttp.responseText;
|
||||
// var check_DS_array=check_dispo.split("\n");
|
||||
var check_dispo = null;
|
||||
check_dispo = xmlhttp.responseText;
|
||||
var check_DS_array=check_dispo.split("\n");
|
||||
// alert(xmlhttp.responseText + "\n|" + check_DS_array[1] + "\n|" + check_DS_array[2] + "|");
|
||||
// if (check_DS_array[1] == 'Next agent_log_id:')
|
||||
// {
|
||||
// agent_log_id = check_DS_array[2];
|
||||
// }
|
||||
if (check_DS_array[1] == 'Next agent_log_id:')
|
||||
{
|
||||
agent_log_id = check_DS_array[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
delete xmlhttp;
|
||||
|
||||
Reference in New Issue
Block a user