[Solved] Force Reset Hopper instead of adding leads

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

[Solved] Force Reset Hopper instead of adding leads

Postby khuff » Tue Feb 21, 2017 11:37 am

I'm wanting to force reset the hopper every minute or two instead of just adding leads like it normally does. We're wanting to keep it pruned of leads that have had their status changed through the api but they may already be in the hopper. Are there any issues that this could cause? Is there a cron job I can run or change to handle this? Only want to do it for one campaign.
Last edited by khuff on Tue Feb 21, 2017 1:20 pm, edited 2 times in total.
Vicibox 8.1 | ViciDial VERSION: 2.14-687a BUILD: 180908-1618 | Asterisk: 11.25.3-vici | Multi Server 12 x Dialers / 2 x Web / 1 x Master DB / 1 x Slave DB / 1 x Archive | No extra software or hardware after install
khuff
 
Posts: 80
Joined: Mon Feb 20, 2012 12:19 pm

Re: Force Reset Hopper instead of adding leads

Postby khuff » Tue Feb 21, 2017 1:19 pm

Well ended up rolling my own solution. Using the Start Call URL, and php code to edit the asterisk database outside of vicidial. It ended up not being that database intensive to look up the lead straight from the list table on inbound call start, (This was the reason why we wanted to remove them from outbound. If they call in before we make the outbound call) and then update the status to a non-dialable status for the campaign, and then run another query to delete that lead_id from the hopper.
Vicibox 8.1 | ViciDial VERSION: 2.14-687a BUILD: 180908-1618 | Asterisk: 11.25.3-vici | Multi Server 12 x Dialers / 2 x Web / 1 x Master DB / 1 x Slave DB / 1 x Archive | No extra software or hardware after install
khuff
 
Posts: 80
Joined: Mon Feb 20, 2012 12:19 pm

Re: [Solved] Force Reset Hopper instead of adding leads

Postby mflorell » Tue Feb 21, 2017 3:06 pm

Thanks for posting your solution!

Would you consider posting your PHP script to the Issue Tracker for others to try?
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot], tantd and 140 guests