From a38a86656fa604d79c8a075ae7629143cb9485a4 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 4 Jun 2008 08:05:43 +0000 Subject: [PATCH] add calls in queue display to vicidial.php in branch 2.0.4 reduce delays in dialing and actions sending scripts git-svn-id: svn://192.168.202.10@888 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_VDauto_dial.pl | 4 ++-- bin/AST_VDauto_dial_FILL.pl | 2 +- bin/AST_manager_send.pl | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/AST_VDauto_dial.pl b/bin/AST_VDauto_dial.pl index 3b541a15..6ddf48fa 100644 --- a/bin/AST_VDauto_dial.pl +++ b/bin/AST_VDauto_dial.pl @@ -851,8 +851,8 @@ while($one_day_interval > 0) $stmtA = "INSERT INTO vicidial_auto_calls (server_ip,campaign_id,status,lead_id,callerid,phone_code,phone_number,call_time,call_type,alt_dial,queue_priority) values('$DBIPaddress[$user_CIPct]','$DBIPcampaign[$user_CIPct]','SENT','$lead_id','$VqueryCID','$phone_code','$phone_number','$SQLdate','OUT','$alt_dial','$DBIPqueue_priority[$user_CIPct]')"; $affected_rows = $dbhA->do($stmtA); - ### sleep for a tenth of a second to not flood the server with new calls - usleep(1*100*1000); + ### sleep for a five hundredths of a second to not flood the server with new calls + usleep(1*50*1000); } } diff --git a/bin/AST_VDauto_dial_FILL.pl b/bin/AST_VDauto_dial_FILL.pl index c66af54a..2bcb71b8 100644 --- a/bin/AST_VDauto_dial_FILL.pl +++ b/bin/AST_VDauto_dial_FILL.pl @@ -701,7 +701,7 @@ while($one_day_interval > 0) $stmtA = "INSERT INTO vicidial_auto_calls (server_ip,campaign_id,status,lead_id,callerid,phone_code,phone_number,call_time,call_type,alt_dial,queue_priority) values('$DB_camp_server_server_ip[$server_CIPct]','$DBfill_campaign[$camp_CIPct]','SENT','$lead_id','$VqueryCID','$phone_code','$phone_number','$SQLdate','OUTBALANCE','$alt_dial','$DBIPqueue_priority[$camp_CIPct]')"; $affected_rows = $dbhA->do($stmtA); - ### sleep for a tenth of a second to not flood the server with new calls + ### sleep for 2.5 hundredths of a second to not flood the server with new calls usleep(1*25*1000); } diff --git a/bin/AST_manager_send.pl b/bin/AST_manager_send.pl index cb80cb66..b6c9a9e3 100644 --- a/bin/AST_manager_send.pl +++ b/bin/AST_manager_send.pl @@ -100,7 +100,7 @@ eventLogger($conf{PATHlogs}, 'process', $event_string); my $one_day_interval = 182; # 2 day loops for 12 months while ($one_day_interval > 0) { - my $endless_loop = 864000; # 2 days at .20 seconds per loop + my $endless_loop = 1728000; # 2 days at .10 seconds per loop my $affected_rows; my $NEW_actions; while ($endless_loop > 0) { @@ -226,11 +226,11 @@ while ($one_day_interval > 0) { } if ($affected_rows) { - ### sleep for 5 hundredths of a second if just send an ACTION - usleep(1*50*1000); + ### sleep for 1 hundredth of a second if just send an ACTION + usleep(1*10*1000); } else { - ### sleep for 20 hundredths of a second if no actions sent - usleep(1*200*1000); + ### sleep for 10 hundredths of a second if no actions sent + usleep(1*100*1000); } $endless_loop--;