by mflorell » Wed Jul 01, 2015 3:19 am
We have been doing this manually for clients for years, using the vicidial_list_archive table and queries like this:
CREATE TABLE vicidial_list_archive LIKE vicidial_list;
ALTER TABLE vicidial_list_archive MODIFY lead_id INT(9) UNSIGNED NOT NULL;
insert ignore into vicidial_list_archive select * from vicidial_list where list_id IN('118603','115503','112903','8112503','117103','118003','111903','111402','115203','117503','111603','116303','115103','117703','116703','110803','107903','112703');
delete from vicidial_list where list_id IN('102932','102915','118603','115503','112903','8112503','117103','118003','111903','111402','115203','117503','111603','116303','115103','117703','116703','110803','107903','112703');
We usually don't touch the vicidial_lists table at all.
If you archive leads in this manner, they are still searchable from lead search if you set Archive = Yes at the top of the lead search page.
As for making this something you can do through a web interface, there are some issues with that. Namely, the long amount of time it can take to execute these archive queries. The example queries listed above took about 2 hours to complete. During that time the dialer would be unusable. We usually don't want those kind of things to be triggered by web admin actions.