Page 1 of 1

split times in local call time

PostPosted: Sat Jun 15, 2013 1:35 pm
by talalshamijo
Hi,

is there a way to have multiple times set during a day for a local call time?
am trying to have working hours every day from 900-1600 and from 2100-100* (*is next working day)

apprecaite all help

Talal

Re: split times in local call time

PostPosted: Mon Jun 17, 2013 8:36 am
by mflorell
Not directly in the web interface, but over 2 years ago we added the AST_DB_calltime_change.pl script to allow for this. You would put this in the crontab before and after the second set of times. Also, if you want a call time to go until 1 AM, then you need to use 2500 as the stop time.

Here's are example crontab entries from one of our clients doing this:

59 9 * * * /usr/share/astguiclient/AST_DB_calltime_change.pl --calltime=705007 -q --default-start=1000 --default-stop=1600
59 16 * * * /usr/share/astguiclient/AST_DB_calltime_change.pl --calltime=705007 -q --default-start=1700 --default-stop=1900

Re: split times in local call time

PostPosted: Wed Jun 19, 2013 11:18 am
by talalshamijo
Thanks for the info... will try it..

Re: split times in local call time

PostPosted: Sun Nov 11, 2018 3:51 pm
by iboam
Hi mflorell, and thanks for this solution. i have an specific question. how may this work for an specific campaign ?? calltime= CALLTIME ID ??

Re: split times in local call time

PostPosted: Sun Nov 11, 2018 5:30 pm
by mflorell
A campaign has a call time assigned to it, so you can use a separate call time for each campaign if you want.

Re: split times in local call time

PostPosted: Sun Nov 11, 2018 6:00 pm
by iboam
i have this call time from 5:00 pm - 9:00 pm every day of the week only for 1 campaign, but i would like to run this campaign Mon-Wed-Fri from 10:00 Am to 12:00 Pm too
Image

Question: is this the cron job that i need to run in order to run this campaign also Mon-Wed-Fri from 10:00 Am to 12:00 Pm ???

0 17-21 * * 1-5 /usr/share/astguiclient/AST_DB_calltime_change.pl --calltime=5pm-9pm -q --default-start=1700 --default-stop=2100
0 10-12 * * 1,3,5 /usr/share/astguiclient/AST_DB_calltime_change.pl --calltime=5pm-9pm -q --default-start=1000 --default-stop=1200

or just add the additional time condition for this campaign ?

Re: split times in local call time

PostPosted: Mon Nov 12, 2018 10:37 am
by mflorell
Why not add a new Call Time for that one campaign?

Re: split times in local call time

PostPosted: Mon Nov 12, 2018 11:29 am
by iboam
I want to run the campaign twice a day:
Mon-Wed-Fri from 10:00 Am to 12:00 Pm and 5:00 pm - 9:00 pm