Koozali.org: home of the SME Server

IVR Timings

Offline richardsmith

  • *
  • 34
  • +0/-0
IVR Timings
« 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

Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #1 on: May 27, 2014, 02:13:04 PM »
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.

guest22

Re: IVR Timings
« Reply #2 on: May 27, 2014, 09:31:50 PM »
It would help if you could post the exact versions of all products involved.

Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #3 on: May 27, 2014, 09:39:30 PM »
Working on the latest build of Sail v4 on SME8.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: IVR Timings
« Reply #4 on: June 02, 2014, 08:36:49 PM »
Never seen a problem like this on SME.   
Where is sme getting its time from?

Kind Regards
S

Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #5 on: June 02, 2014, 09:37:13 PM »
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?

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: IVR Timings
« Reply #6 on: June 03, 2014, 10:47:50 AM »
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



Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #7 on: June 03, 2014, 10:51:56 AM »
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.


Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #8 on: July 06, 2014, 09:08:21 PM »
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.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: IVR Timings
« Reply #9 on: July 08, 2014, 09:05:11 PM »
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   

Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #10 on: July 10, 2014, 10:26:32 PM »
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

Offline richardsmith

  • *
  • 34
  • +0/-0
Re: IVR Timings
« Reply #11 on: July 24, 2014, 10:46:23 AM »
Hi

Has anyone had a chance to look at this IVR issue yet?

Thanks,

Richard

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: IVR Timings
« Reply #12 on: September 27, 2014, 09:04:06 PM »
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