Added last_inbound_call_time and last_inbound_call_finish Next Agent Call routing options to in-groups
git-svn-id: svn://192.168.202.10@1689 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
# 110224-1903 - Added compatibility with QM phone environment logging
|
||||
# 110304-0007 - Added agent on-hook compatibility
|
||||
# 110626-0030 - Added queuemetrics_pe_phone_append
|
||||
# 110707-1342 - Added last_inbound_call_time to next agent call options for inbound
|
||||
#
|
||||
|
||||
### begin parsing run-time options ###
|
||||
@@ -308,8 +309,11 @@ while($one_day_interval > 0)
|
||||
while ($vla_qh_ct > $w)
|
||||
{
|
||||
$start_call_url='';
|
||||
$licf_SQL = '';
|
||||
if ($QHcall_type[$w] =~ /IN/)
|
||||
{$licf_SQL = ",last_inbound_call_time='$SQLdate'";}
|
||||
|
||||
$stmtA = "UPDATE vicidial_live_agents set status='INCALL',last_call_time='$SQLdate',comments='REMOTE',calls_today=(calls_today + 1),last_state_change='$SQLdate' where live_agent_id='$QHlive_agent_id[$w]';";
|
||||
$stmtA = "UPDATE vicidial_live_agents set status='INCALL',last_call_time='$SQLdate',comments='REMOTE',calls_today=(calls_today + 1),last_state_change='$SQLdate' $licf_SQL where live_agent_id='$QHlive_agent_id[$w]';";
|
||||
$Aaffected_rows = $dbhA->do($stmtA);
|
||||
|
||||
$stmtB = "UPDATE vicidial_list set status='XFER',user='$QHuser[$w]' where lead_id='$QHlead_id[$w]';";
|
||||
@@ -608,7 +612,7 @@ while($one_day_interval > 0)
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
$stmtA = "INSERT INTO vicidial_live_agents (user,server_ip,conf_exten,extension,status,campaign_id,random_id,last_call_time,last_update_time,last_call_finish,closer_campaigns,channel,uniqueid,callerid,user_level,comments,last_state_change,outbound_autodial,ra_user,on_hook_agent,on_hook_ring_time) values('$DBremote_user[$h]','$server_ip','$DBremote_conf_exten[$h]','R/$DBremote_user[$h]','READY','$DBremote_campaign[$h]','$DBremote_random[$h]','$SQLdate','$FDtsSQLdate','$SQLdate','$DBremote_closer[$h]','','','','$DBuser_level[$h]','REMOTE','$SQLdate','$CAMPAIGN_autodial[$h]','$DBuser_start[$h]','$DBon_hook_agent[$h]','$DBon_hook_ring_time[$h]');";
|
||||
$stmtA = "INSERT INTO vicidial_live_agents (user,server_ip,conf_exten,extension,status,campaign_id,random_id,last_call_time,last_update_time,last_call_finish,closer_campaigns,channel,uniqueid,callerid,user_level,comments,last_state_change,outbound_autodial,ra_user,on_hook_agent,on_hook_ring_time,last_inbound_call_time,last_inbound_call_finish) values('$DBremote_user[$h]','$server_ip','$DBremote_conf_exten[$h]','R/$DBremote_user[$h]','READY','$DBremote_campaign[$h]','$DBremote_random[$h]','$SQLdate','$FDtsSQLdate','$SQLdate','$DBremote_closer[$h]','','','','$DBuser_level[$h]','REMOTE','$SQLdate','$CAMPAIGN_autodial[$h]','$DBuser_start[$h]','$DBon_hook_agent[$h]','$DBon_hook_ring_time[$h]','$SQLdate','$SQLdate');";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if ($DBX) {print STDERR "$DBremote_user[$h] NEW INSERT\n";}
|
||||
if ($TESTrun > 0)
|
||||
|
||||
Reference in New Issue
Block a user