From 62a49403af72ae08be509a6a789e8ad88bd9ce5b Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 2 Mar 2007 19:46:18 +0000 Subject: [PATCH] fixed small bug in AST_VDauto_dial.pl that did not register changes in max_vicidial_trunk to 0 git-svn-id: svn://192.168.202.10@545 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_VDauto_dial.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_VDauto_dial.pl b/agc_2-X/trunk/bin/AST_VDauto_dial.pl index 4a57b05c..b2b8d957 100644 --- a/agc_2-X/trunk/bin/AST_VDauto_dial.pl +++ b/agc_2-X/trunk/bin/AST_VDauto_dial.pl @@ -61,6 +61,7 @@ # 70205-1414 - Added code for last called date update # 70207-1031 - Fixed Tally-only-available bug with customer hangups # 70215-1123 - Added queue_log ABANDON logging +# 70302-1412 - Fixed max_vicidial_trunks update if set to 0 # @@ -117,7 +118,7 @@ $MT[0]=''; $RECcount=''; ### leave blank for no REC count $RECprefix='7'; ### leave blank for no REC prefix $useJAMdebugFILE='1'; ### leave blank for no Jam call debug file writing - +$max_vicidial_trunks=0; ### setting a default value for max_vicidial_trunks # default path to astguiclient configuration file: $PATHconf = '/etc/astguiclient.conf'; @@ -202,7 +203,7 @@ while ($sthArows > $rec_count) if ($DBASTmgrUSERNAMEupdate) {$ASTmgrUSERNAMEupdate = $DBASTmgrUSERNAMEupdate;} if ($DBASTmgrUSERNAMElisten) {$ASTmgrUSERNAMElisten = $DBASTmgrUSERNAMElisten;} if ($DBASTmgrUSERNAMEsend) {$ASTmgrUSERNAMEsend = $DBASTmgrUSERNAMEsend;} - if ($DBmax_vicidial_trunks) {$max_vicidial_trunks = $DBmax_vicidial_trunks;} + $max_vicidial_trunks = $DBmax_vicidial_trunks; if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} if ($DBSERVER_GMT) {$SERVER_GMT = $DBSERVER_GMT;} if ($DBext_context) {$ext_context = $DBext_context;} @@ -395,7 +396,7 @@ while($one_day_interval > 0) $DBIPserver_trunks_limit[$user_CIPct] = "$aryA[0]"; $rec_count++; } - $stmtA = "SELECT sum(dedicated_trunks) FROM vicidial_server_trunks where campaign_id!='$DBIPcampaign[$user_CIPct]' and server_ip='$server_ip';"; + $stmtA = "SELECT sum(dedicated_trunks) FROM vicidial_server_trunks where campaign_id NOT IN('$DBIPcampaign[$user_CIPct]') and server_ip='$server_ip';"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows; @@ -1331,7 +1332,7 @@ while($one_day_interval > 0) $DBanswer_transfer_agent= "$aryA[1]"; $DBSERVER_GMT = "$aryA[2]"; $DBext_context = "$aryA[3]"; - if ($DBmax_vicidial_trunks) {$max_vicidial_trunks = $DBmax_vicidial_trunks;} + $max_vicidial_trunks = $DBmax_vicidial_trunks; if ($DBanswer_transfer_agent) {$answer_transfer_agent = $DBanswer_transfer_agent;} if ($DBSERVER_GMT) {$SERVER_GMT = $DBSERVER_GMT;} if ($DBext_context) {$ext_context = $DBext_context;}