found a potential bug with AST_VDauto_dial_FILL.pl
Posted: Wed Sep 05, 2012 8:38 pm
using svn Revision: 1842
there are two queries that calculate how many calls should be placed for the load balance setup. Here are the original queries:
both should consider XFER and CLOSER calls not as dialed calls like this:
basicly add and status NOT IN('XFER','CLOSER'); at the end of the query.. there might be more statuses we should add but im not sure if this will break anything or not. Let me know what your thoughts are and if this is correct i'll add a patch to the issue tracker
there are two queries that calculate how many calls should be placed for the load balance setup. Here are the original queries:
- Code: Select all
$stmtA = "SELECT count(*) FROM vicidial_auto_calls where server_ip='$DB_camp_server_server_ip[$server_CIPct]' and campaign_id='$DBfill_campaign[$camp_CIPct]' and call_type='OUTBALANCE';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;
if ($sthArows > 0)
{
@aryA = $sthA->fetchrow_array;
$VAC_server_BALcamp = $aryA[0];
}
$sthA->finish();
both should consider XFER and CLOSER calls not as dialed calls like this:
- Code: Select all
$stmtA = "SELECT count(*) FROM vicidial_auto_calls where server_ip='$DB_camp_server_server_ip[$server_CIPct]' and campaign_id='$DBfill_campaign[$camp_CIPct]' and call_type='OUTBALANCE' and status NOT IN('XFER','CLOSER');";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;
if ($sthArows > 0)
{
@aryA = $sthA->fetchrow_array;
$VAC_server_BALcamp = $aryA[0];
}
$sthA->finish();
basicly add and status NOT IN('XFER','CLOSER'); at the end of the query.. there might be more statuses we should add but im not sure if this will break anything or not. Let me know what your thoughts are and if this is correct i'll add a patch to the issue tracker