Has anyone modified the
AST_timeonVDADall.php to allow you to enter a value for minimum dialable leads level to pop-up the "Dialable Leads" warning? I modified the code (line 2105 when I started in my SVN - which is still 2973) to set
dialable_leads < 5000 - which is OK - but - I would really like to be able to set this level in the "Choose Report display Options" screen instead - so I can do it on the fly - based on how many agents I have logged in - how fast the leads are burning, etc...
I am sure I can figure it out - but - if it's been done already - then, there is no need to...
I figured that I could just add in another variable to the URL - so I copied the code for
NOLEADSalert and created
NOLEADSmin in the beginning of the file (copied lines 163-164, inserting lines 165-166 - and also pushing line 2105 to line 2107)...But then I found out that there are about 1,000 places in the code where the URL is re-built - and it appears that I have to insert
&NOLEADSmin=$NOLEADSmin everywhere that I also see
NOLEADSalert=$NOLEADSalert ... I guess this is for the 1,000 different ways the URL could be getting refreshed inside this page.
I will keep working on this unless someone tells me they did it...
If it ends up being me who does it - and this is a feature that anyone else wants - how do I make my code/mods available? My guess is I should download the latest SVN version first, modify the AST_timeonVDADall.php that is included in there - and then save it to a new name, so it won't get over-written with any other updates - and then submit it here for someone to review to make sure I didn't break anything or violate any rules (security / allowed IP addresses, etc)?
The main reason I want this done is, once the "dialable leads" hits zero - even with the "Bulk" Reset Campaign Lists admin tool available to me - it could take a minute or two until there are once again dialable leads available and in the hopper (and as you probably already know - two minutes of no calls / sales floor silence - is a LIFETIME
!!! )
Of course - I pay as much attention as possible - and train other floor managers to do the same - but - I do multi-task quite often - and - if that popped up BEFORE we were completely out - and/or made some noise/alert - I should notice it long before I run out...and then deal with the lists (resetting, activating, importing - something). How many leads this alert should display at depends, of course, a lot on the room running the campaign.
Anyway - please let me know if this has ever been done / requested / already in the works (where it would be directly supported)- in the meantime, I will be happy enough with changing "line 2107" in my version
$stmtB="SELECT campaign_id from vicidial_campaign_stats where campaign_id IN($group_SQL) and dialable_leads < 5000 order by campaign_id;";Any advice to make this a bit more elegant will be appreciated!David