diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi index 81b9cb43..0878245d 100644 --- a/agi/agi-VDAD_ALL_inbound.agi +++ b/agi/agi-VDAD_ALL_inbound.agi @@ -256,6 +256,7 @@ # 230606-2231 - Added second_alert_trigger features # 230612-2044 - Added second_alert_container, second_alert_only and second_alert_trigger TIMEOUT options # 230810-2006 - Added third_alert_trigger features +# 231026-0917 - Fix for rare fronter/closer logging issue # $script = 'agi-VDAD_ALL_inbound.agi'; @@ -274,6 +275,7 @@ $called_count=1; $entry_list_id=0; $areacode_filter_run=0; $no_agent_no_queue_checked=0; +$fronter_agent=''; $now_date_epoch = time(); @@ -701,6 +703,7 @@ if ($call_handle_method =~ /^CLOSER/) $park_extension = $EXT_vars[4]; # filename of the on-hold music file $phone_number = $EXT_vars[5]; # phone number of customer $fronter = $EXT_vars[6]; # user of the fronter that transferred the call + $fronter_agent = $EXT_vars[6]; # user of the fronter that transferred the call $fronter_call_seconds = $EXT_vars[8]; # not currently used $dial_ingroup_flag = $EXT_vars[9]; # used by dial in-group feature if ( ($channel_group =~ /AGENTDIRECT/i) || ($dial_ingroup_flag > 0) ) @@ -1672,6 +1675,10 @@ else $vendor_id = $aryA[3]; $called_count = $aryA[4]; $list_id = $aryA[5]; + + if (length($fronter_agent) > 0) + {$fronter = $fronter_agent;} + $cbc++; } $sthA->finish();