Page 1 of 1

Campaigns Sharing Statistics

PostPosted: Mon Sep 18, 2006 5:39 pm
by enjay
Has anyone run into a problem in AST_timeonVDADall.php where the campaign statistics are being shared? I have 2 compaigns that are sharing each others statistics for some reason.

Code: Select all
+-------------+---------------------+----------------+-------------+-------------+-----------------+------------+------------+----------------+----------------+----------------+--------------------+---------------+---------------+-------------------+--------------+--------------+------------------+---------------------+-----------------------+
| campaign_id | update_time         | dialable_leads | calls_today | drops_today | drops_today_pct | calls_hour | drops_hour | drops_hour_pct | calls_halfhour | drops_halfhour | drops_halfhour_pct | calls_fivemin | drops_fivemin | drops_fivemin_pct | calls_onemin | drops_onemin | drops_onemin_pct | differential_onemin | agents_average_onemin |
+-------------+---------------------+----------------+-------------+-------------+-----------------+------------+------------+----------------+----------------+----------------+--------------------+---------------+---------------+-------------------+--------------+--------------+------------------+---------------------+-----------------------+
| 1001        | 2006-09-18 15:34:34 |          52011 |        3032 |         232 | 7.65            |        483 |         72 | 2.91          |            135 |              8 | 5.93               |            22 |             0 | 0                 |            6 |
| 1003        | 2006-09-18 15:34:21 |           9907 |        3032 |         232 | 7.65            |        483 |         72 | 2.91          |            135 |              8 | 5.93               |            22 |             0 | 0                 |            6 |            0 | 0                | 2.1                 | 7                     |
+-------------+---------------------+----------------+-------------+-------------+-----------------+------------+------------+----------------+----------------+----------------+--------------------+---------------+---------------+-------------------+--------------+--------------+------------------+---------------------+-----------------------+

PostPosted: Tue Sep 19, 2006 5:28 am
by mflorell
That is quite strange, it does not work like that on my system with several active campaigns. What is the last changelog on the AST_VDhopper.pl script that you are using?

PostPosted: Tue Sep 19, 2006 10:27 am
by enjay
# 60822-1527 - added campaign_stats and logging options for adaptive dialing

PostPosted: Tue Sep 19, 2006 10:55 am
by mflorell
let me dive into the code, might be a bug in there somewhere.

PostPosted: Tue Sep 19, 2006 11:59 am
by mflorell
Looks like a bug indeed. I just changed all variables to use arrays to keep everything separate to not worry about overwriting.

Test it out and let me know if it works for you.
http://www.eflo.net/VICIDIALmantis/view.php?id=28