by DomeDan » Mon Oct 06, 2014 8:26 am
No, CBHOLD should not be part of lead recycle. that would mess things up
here is an example on the query I run, only different is that I specify the list_id in the script I run, this part removes callbacks thats 4 weeks over the callback time
- Code: Select all
UPDATE vicidial_callbacks
SET status='INACTIVE'
WHERE status IN('LIVE','ACTIVE')
and callback_time < DATE_SUB(NOW(), interval 4 WEEK);
and this next part takes all the inactive callbacks and set the lead status to NEW, you can set it to anything else like "OCB - Old CallBack" and just add that status and add that status to dialable statuses for example
the entry_time and last_local_call_time check at the end is not really necessary but good if you want to do something to the record in the callback table
- Code: Select all
UPDATE vicidial_callbacks c
INNER JOIN vicidial_list i on i.lead_id=c.lead_id
SET i.status='NEW'
WHERE i.status in ('CBHOLD','CALLBK')
AND c.status in ('INACTIVE')
AND DATE(last_local_call_time) = DATE(entry_time);
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com