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 Ubuntu 24.04, Asterisk 18.18.1, AstGUIclient: (VERSION: 2.14-928a, BUILD: 240826-0918, SVN: 3874), MacPro 3,1 21GB, VOIP Provider: Skyetel, NGINX, Self Hosted + WireGuard tunnel
Cyberwolf2
 
Posts: 29
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: 18386
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 Ubuntu 24.04, Asterisk 18.18.1, AstGUIclient: (VERSION: 2.14-928a, BUILD: 240826-0918, SVN: 3874), MacPro 3,1 21GB, VOIP Provider: Skyetel, NGINX, Self Hosted + WireGuard tunnel
Cyberwolf2
 
Posts: 29
Joined: Mon May 10, 2021 7:59 pm


Return to Support

Who is online

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