by blackbird2306 » Wed Aug 29, 2018 8:56 pm
Don't go the way with cron job and database query. Cronjobs start once a minute (yes you can start it more frequently with e.g. sleep) and the inaccuracy could be around 2 minutes not to mention the higher impact on database load. Just go with my solution (change the 60000 ms according to your wishes).
Make changes in vicidial.php about line 9073 (svn revision 3020) and add the red part at 2 different places:
// ################################################################################
// Send the Manual Dial Next Number request
var manual_timeout;
function ManualDialNext(mdnCBid,mdnBDleadid,mdnDiaLCodE,mdnPhonENumbeR,mdnStagE,mdVendorid,mdgroupalias,mdtype,MDNclick)
{
...
...
if ( (document.vicidial_form.LeadPreview.checked==true) && (active_ingroup_dial.length < 1) )
{
// ADD THIS FURTHER DOWN ABOUT LINE 9147
clearTimeout(manual_timeout);
manual_timeout = setTimeout(function(){
manual_click = document.getElementById("MainStatuSSpan").getElementsByTagName('a')[0];
manual_click.click();
}, 60000);
reselect_preview_dial = 1;
in_lead_preview_state = 1;
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3