Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: richardsmith on May 26, 2014, 11:00:33 PM
-
Hi
Where does the IVR get it's time from. Despite manually updating the time in SME8 (for some reason it wouldn't pick up BST) but it Asterisk still seems to be an hour out so I have had to change the Open/Closed times to be an hour out so that the IVR works at the correct time.
Thanks
-
Just to add that this only seems to be an issue with SME version, on Debian it seems to be fine. Also in the Sail GUI the system time also shows the correct time but the IVR is still an hour out.
-
It would help if you could post the exact versions of all products involved.
-
Working on the latest build of Sail v4 on SME8.
-
Never seen a problem like this on SME.
Where is sme getting its time from?
Kind Regards
S
-
I had to manually set the time as it wouldn't correct itself for BST. So in terms of the original question, does the IVR get it's timing from SME or somewhere else?
-
The timer routine is written in perl in 3.1.1 and php in 4.0.x. It uses the internal date function in each of those respective languages. You can find the actual routine at /opt/sark/generator/srktimer.php
It has commented debug statements which you can uncomment if you wish to play with it to see what it does. It is run once a minute by cron (look in cron.d) and sets the cluster(s) to open or closed depending upon the time segments you've set.
Kind Regards
S
-
Great, thanks that's what I need. Saves me trying to hunt around all the jolly files, it's not a major hassle but interested to see what is happening.
-
I haven't had a chance to look at this in depth yet but there definitely seems to be a bug in the timers. I have just done a fresh build this time using debian and latest Sail build and I'm having issues with it not going to closed option when it should. I it seems to be working OK for the weekends but not for weekdays.
-
We'll need a little more than that in order to debug your issue. Please send us an example of a timer (screenshot will do) which is not working as you wish together with asterisk console output of a misdirected call (open when you believe it should be closed, or vice versa) and a screenshot from the tenants panel at the time of the call. With that we'll be happy to look at it.
Kind Regards
S
-
Hi
I have created a link to a dropbox folder with the screenshots (sorry, it's late and I couldn't work out how to attach images on here).
https://www.dropbox.com/sh/kg3i99sspfs13rs/AABE6vOhsgD3jIWr8yxVUoRRa
Let me know if that works or not. It definitely seems that the tenant screen shows as open even though it shouldn't.
Rich
-
Hi
Has anyone had a chance to look at this IVR issue yet?
Thanks,
Richard
-
We have an answer for you.
The problem is not in the timer routines. It is in the java regex. It is allowing you to enter a time of 8:59. The timer routines require hh:mm. If you respecify the time as 08:59 then it will work fine.
The regex has been updated and will be committed shortly.
Kind Regards
S