Time to start 08:00
Time to finish 17:00
Week day start: Monday
Week day end: Friday
This is used by time condition “opening hours” set as destination for inbound route:
Destination matches: IVR
Destinatio non-matches: “Closed Office” announcement
At 17:00 Closed Office message is played but next day at 08:00 (or Monday 08:00) calls are not switched in service to IVR, closed office is still playing…
Where am I wrong ?
Set the time zone to your time zone in the time condition. Your system time might not be the PHP time zone you have set. Those are two different time zone settings. The PHP time zone is only used when PHP scripts are used. The time conditions will use the actual server time setting.
Already done, same behavior.
The actual server time shows the right time and date.
The fact the “current state” inside time condition is “unknown” make me think of something wrong.
What I really don’t know, and I ask for is : no one else have this issue ? no one else use this “not working” time conditions system that is one of basic feature one wants in a telephone system ?
I’ve read something similar as freepbx issue , probably still unresolved.
Unless I’m making a macroscopic error, that’s why I’m here for…
P.S.
time conditions timezone is the same as Advanced Settings->PHP_Timezone (both Europe/Rome)
Correct server time shown,
However, “date” command in linux cli returns UTC time
Is this ok ?
The reason I suggested this is the “Unknown” time condition. Incron runs once an minute to check these, and if you have a problem with incron not running (as I recently did), your time conditions won’t get set correctly.
Reinhard, my fault, I was sure I set timezone in sysadmin to my timezone, it wasn’t…
Fixed.
Dave, incron is running:
service incrond status
Redirecting to /bin/systemctl status incrond.service
â— incrond.service - Inotify System Scheduler
Loaded: loaded (/usr/lib/systemd/system/incrond.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-06-01 22:40:52 CEST; 15min ago
Main PID: 642 (incrond)
CGroup: /system.slice/incrond.service
└─642 /usr/sbin/incrond
but incrontab -l returns nothing, empty.
time conditions status still unknown
Time condition itself works, tested !
My fault was the wrong system timezone declared in sysadmin (two hours back - UTC) indeed.
The other fault is probably to look at “Change Override” state (currently listed as unknown) as indicator of timegroup matching or not.
Should that state really reflect the timegroup matching ? or just the manually-forced time condition state ?