NI 7 days recycling

All installation and configuration problems and questions

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

NI 7 days recycling

Postby Cyberwolf2 » Tue Oct 01, 2024 3:06 am

I'm trying to recycle leads for NI, but only if it's passed 7 days. How do I get this to work?

So far I have this and it isn't filtering the right way:

Do not call leads with NI and last call of 7 days or less:
Code: Select all
not (last_local_call_time > CURDATE() - interval 7 day and status = 'NI')
Scratch install Rocky 9, Asterisk 18.21.0-vici, AstGUIclient: (VERSION: 2.14-928a, BUILD: 240826-0918, SVN: 3874), Supermicro X11SSL-F, Xeon E3-1230 16GB, Skyetel, NGINX, PHP 8.2.27
Cyberwolf2
 
Posts: 31
Joined: Mon May 10, 2021 7:59 pm

Re: NI 7 days recycling

Postby mflorell » Tue Oct 01, 2024 7:35 am

Code: Select all
( ( (status='NI') and (last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -7 DAY),' ',CURTIME()) ) ) or (status != 'NI') )
mflorell
Site Admin
 
Posts: 18399
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: NI 7 days recycling

Postby Cyberwolf2 » Wed Oct 02, 2024 12:10 pm

thank you, just applied
Scratch install Rocky 9, Asterisk 18.21.0-vici, AstGUIclient: (VERSION: 2.14-928a, BUILD: 240826-0918, SVN: 3874), Supermicro X11SSL-F, Xeon E3-1230 16GB, Skyetel, NGINX, PHP 8.2.27
Cyberwolf2
 
Posts: 31
Joined: Mon May 10, 2021 7:59 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 85 guests