Page 1 of 1

automatic list reset when lists count 0

PostPosted: Sat Nov 27, 2010 9:59 am
by brucem
Version: 2.4b0.5
DB Schema Version: 1242
DB Schema Update Date: 2010-08-27 12:05:51
VERSION: 2.4-276
BUILD: 100823-1501
Asterisk Version:

I need a way to automatically reset any list when list Not Called goes to 0. I see under lists the Reset Times option but I do not want to reset the list every day according to a time. I need the list to complete dialing all records before being re-set. Any suggestions?

PostPosted: Sat Nov 27, 2010 10:16 am
by williamconley
Write a script in php and place it in cron to check your active lists in your active campaigns every 5 minutes (or every minute) and "reset" any that have no more calls available.

Do not overlook the fact that certain dispositions are not dialable.

We've done this for a few clients who want their lists to recycle automatically (so the manager who is out at lunch doesn't have to try to get it done on his smart phone at Arby's).

PostPosted: Sat Nov 27, 2010 12:38 pm
by brucem
Is there an example script of this out there or do I have to pay someone for it? I hate to recreate the wheel if I don't have to.

PostPosted: Sat Nov 27, 2010 1:29 pm
by williamconley
It's plain vanilla mysql, we charge to install it. I keep expecting it "in the next version" because it's so easy, but all we got was the timed version instead.

i'm pretty sure we could modify the timed version to allow the keyword "empty" to be used to activate our script on a specific list (although our standard method has always been to do so when the CAMPAIGN had no leads left, not a specific script, so maybe a new feature would be better).

then (if you, the customer, will allow it) we could submit the revision to the Issue Tracker for possible future inclusion.

PostPosted: Sat Nov 27, 2010 4:07 pm
by mflorell
Not Called going to 0 is usually only going to happen the first run through the list, after that you will have statuses that you probably do not want to dial again(like DNC for example), and after the first reset you will then always have some leads in the not called column. This is why William mentioned resetting lists after the campaign runs out of leads to dial.