Page 1 of 1

Not allow more than 2 effective contacts

PostPosted: Mon Mar 22, 2021 11:36 am
by jlvargas
Hello, I need your help with the following:

In Chile a new law has just been approved which does not allow more than 2 effective contacts with the same client per month, is it possible to do this with the script dispo_move_list.php? How can I apply it for campaigns in vicidial? I was thinking of adding it to a DNC list.

Re: Not allow more than 2 effective contacts

PostPosted: Tue Mar 23, 2021 6:03 pm
by covarrubiasgg
You can use a FILTER but it will add complexity to the process of adding lead to the hopper.

I would rather set a DNC as you mentioned and create a cron job remove them from the DNC when 30 days are pass, something like


Code: Select all
DELETE FROM vicidial_dnc WHERE status = 'EFFECTIVE' AND last_local_call_time  < date_sub(now(), interval 1 month)


Just note, it may be a problem if the lead change status during that period of time