Random Lead Recycle Delay

Discussions about development of VICIDIAL and astGUIclient

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

Random Lead Recycle Delay

Postby delphus » Thu Mar 06, 2014 8:56 am

Hi every one.

I have this question:

We configured a CAMPAIGN with some status in lead recycling. One of this status is DROP.

We define an attemp_delay of 1800 seconds.

In some hours we have a big call load and this cause more DROPs than usually. All this leads will be recycled with the same attemp_delay and they will be inserted in the hopper list almost at the same time, causing a new overload and new DROPs for the same leads.

There is a way to add a little random time to the attemp_delay to avoid this behaviour?

I looked into AST_VDHopper.pl and I find the following instructions:
$LLCT_DATE_offset = ($LOCAL_GMT_OFF - $default_gmt_ARY[$dgA]);
$LLCT_DATE_offset_epoch = ( $secX - ($LLCT_DATE_offset * 3600) );
$Rtarget = ($LLCT_DATE_offset_epoch - $recycle_delay[$rc]);

If i change it with the following, Have I the desired behaviour (adding a random time between 0 and 300 seconds)?
$LLCT_DATE_offset = ($LOCAL_GMT_OFF - $default_gmt_ARY[$dgA]);
$LLCT_DATE_offset_epoch = ( $secX - ($LLCT_DATE_offset * 3600) );
$Rtarget = ($LLCT_DATE_offset_epoch - $recycle_delay[$rc] + int(rand(300)));

Obviously it could be parametered

Thanks for your attention,

Marco La Delfa
Vicibox 5.0.3 from .iso | Vicidial 2.8-377c Build 130802-1134| Asterisk 1.8.23.0-vici | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Vmware Esxi 5.1
delphus
 
Posts: 9
Joined: Fri Jul 05, 2013 7:05 am

Re: Random Lead Recycle Delay

Postby geoff3dmg » Thu Mar 06, 2014 9:42 am

Honestly I've never liked using lead recycling for drops (I think it's only really useful for busy numbers). I tend to have the list order set to RANDOM on the first run then DOWN_LAST_CALL_TIME for subsequent runs. I reset lead call status over night. That way the the drops get called back spread over the day rather than all at once.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK


Return to Development

Who is online

Users browsing this forum: No registered users and 17 guests