From 592a3bdeba8bb019bae85e59981a4bee5b36a9de Mon Sep 17 00:00:00 2001 From: mattf Date: Sun, 4 Oct 2015 12:16:19 +0000 Subject: [PATCH] Fixed issue with recording vicidial_id for remote agent calls, now set to closecallid in ALL inbound AGI script git-svn-id: svn://192.168.202.10@2390 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi index 6ab67490..6c78f7dd 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi @@ -199,6 +199,7 @@ # 150707-0850 - Fixed issues with na_call_url function for all calls that are not sent to agent # 150804-1718 - Added _lead_reset options # 150812-2004 - Changed maximum time since last agent update to route a call to and agent from 5 to 7 seconds +# 151004-0815 - Fixed issue with recording vicidial_id for remote agent calls, now set to closecallid # $script = 'agi-VDAD_ALL_inbound.agi'; @@ -3446,7 +3447,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override } ### insert record into recording_log table ### - $stmtA = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,length_in_sec,filename,lead_id,user,location,vicidial_id) values('$channel','$VARserver_ip','$phone_number','$now_date','$now_date_epoch','0','$campaign_rec_filename','$insert_lead_id','$VDADuser','$campaign_rec_filename','$uniqueid');"; + $stmtA = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,length_in_sec,filename,lead_id,user,location,vicidial_id) values('$channel','$VARserver_ip','$phone_number','$now_date','$now_date_epoch','0','$campaign_rec_filename','$insert_lead_id','$VDADuser','$campaign_rec_filename','$insert_close_id');"; $RLRAaffected_rows = $dbhA->do($stmtA); $dbhP=$dbhA; $mysql_count='01173'; $MEL_aff_rows=$RLRAaffected_rows; &mysql_error_logging; if ($AGILOG) {$agi_string = "-- REMOTE RECORDING STARTED : |$RLRAaffected_rows|$campaign_rec_filename|$stmtA|"; &agi_output;}