Fix for missing vicidial_inbound_group_agents entries

Fix for possible daily_limit issue

git-svn-id: svn://192.168.202.10@3918 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2025-03-27 00:12:18 +00:00
parent 46ce5dcaf0
commit 8c35e5b8b2
2 changed files with 18 additions and 3 deletions
+8 -1
View File
@@ -82,7 +82,7 @@
#exten => _99909*.,2,AGI(agi-VDAD_ALL_inbound.agi)
#exten => _99909*.,3,Hangup
#
# Copyright (C) 2024 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2025 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# changes:
# 70828-0924 - First Build
@@ -264,6 +264,7 @@
# 240415-1701 - Fix for ConfBridge code
# 240723-1632 - Small fix for ConfBridge
# 240906-1032 - Added testing for stereo_recording in-group option *NOT PRODUCTION READY*
# 250325-1724 - Fix for possible daily_limit issue
#
$script = 'agi-VDAD_ALL_inbound.agi';
@@ -4253,6 +4254,12 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
# $calls_today_filteredSQL = ",calls_today_filtered='$calls_today_filtered'";
# }
}
else
{
$calls_today = 1;
$calls_today_filtered = 1;
$daily_limit = -1;
}
$sthA->finish();
if ($sthArows > 0)
+10 -2
View File
@@ -557,10 +557,11 @@
# 250129-0900 - Fix for PHP8 TypeError
# 250224-1642 - Fix for drop_lockout_time issue with NULL last_local_call_time DROP leads
# 250311-1420 - Fix for start_call_url on inbound calls where blank and campaign set to ALT
# 250326-1937 - Fix for missing vicidial_inbound_group_agents entries
#
$version = '2.14-450';
$build = '250311-1420';
$version = '2.14-451';
$build = '250326-1937';
$php_script = 'vdc_db_query.php';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=913;
@@ -1917,9 +1918,16 @@ if ($ACTION == 'regCLOSER')
}
else
{
$stmt="INSERT INTO vicidial_inbound_group_agents set user='$user',group_id='$in_groups[$k]';";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
# Set default values since settings didn't exist
$group_weight = 0;
$calls_today = 0;
$group_grade = 1;
$calls_today_filtered = 0;
$daily_limit = -1;
}
$stmt="INSERT INTO vicidial_live_inbound_agents set user='$user',group_id='$in_groups[$k]',group_weight='$group_weight',calls_today='$calls_today',last_call_time='$NOW_TIME',last_call_finish='$NOW_TIME',last_call_time_filtered='$NOW_TIME',last_call_finish_filtered='$NOW_TIME',group_grade='$group_grade',calls_today_filtered='$calls_today_filtered',daily_limit='$daily_limit';";