ok, I think I found a good modification.
I tried to follow the script with the log file. The calculation for the
"current # of agents" working the campaign is accurate and the number of
"active calls" is good too.
If you have
"available only ratio tally" set to 1, the script counts agents with status
"READY|DONE" and multiplies against the Dial level for the "
target # of calls to make".
Now the problems begin with
$active_only. I think this is a tally of agents logged into the campaign that are already in calls. This is then added to the
"target # of calls to make" for a
"total number of calls" that should be made for this campaign. The only problem is the SQL Below does not count all the calls because it looks up calls made by the campaign only. no inbound calls or closer calls are considered because vicidial_auto_calls.campaign_id is not the campaign of the user. It is of the call, and for inbounds, the campaign_id is the in-group ID. Right?
### see how many VDAD calls are live as XFERs and Closers and save in $tally_xfer_line_counter. For agents for this camp only, not for in-bound camps.
if ($active_only > 0)
{
$tally_xfer_line_counter=0;
$stmtA = "SELECT count(*) FROM vicidial_auto_calls where server_ip='$DBIPaddress[$user_CIPct]' and campaign_id='$DBIPcampaign[$user_CIPct]' and status IN('XFER','CLOSER');";
I was thinking to add another SQL count to the
"total number of calls" that should be made for this campaign:
select Count(*) from vicidial_live_agents vla, vicidial_auto_calls vac where vla.uniqueid = vac.uniqueid and vla.campaign_id = '$DBIPcampaign[$user_CIPct]' and status IN('INCALL','XFER','CLOSER');
So 2 questions:
1. Do you think this will work with out breaking anything?
2. Is it possible to have a status "CLOSER" and not have the call come from an in-group?
Dialer-Vicidial 2.2.0-250_100116-0709, Asterisk 1.4.21.2, Intel Quad Q6600 2.4G x64/8G Ram
Web-Apache/2.2.3, PHP 5.2.10, eAccelerator v0.9.5.2, AMD 9950 Quad 2.6G x64/4G Ram
DB-MySQL 5.0.45, 2xAMD 2.6G i386/4G Ram
OS-CentOS 5.3-2.6.18-128.1.16.el5