ViciBox Time Issue

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

ViciBox Time Issue

Postby Geil21 » Tue Jan 25, 2011 1:36 pm

ViciBox_Redux.i686-3.1.5
VERSION: 2.4-296
BUILD: 110111-1305
© 2011 ViciDial Group

Fresh Install on Pentium Dual Core System With 2 Gigs Ram and 7 seats
Digium TDM2400 Analog Board For Internal FXS/FXO and SIP for Outbound

Upgraded GoAutoDial Asterisk Database From 2.2 to 2.4

The system clock shows the correct time and time zone

The web interfaces are off by 3 hours, any idea for cause?

On the real time screen 180 minutes are added to the Wait/Ready/Pause Times

Reporting shows accurate call lengths, but interval report is off by 3 hours as well

Server GMT is -5.00 (Eastern)
Phone are set at -5.00 (Eastern)[/u]
OpenSuSE v.11.3 32-bit w/ PAE
Asterisk v.1.4.39.2-vici
DAHDI v.2.4.1.2
LibPRI v.1.4.11.5
Sangoma VoiceTime v.1.0.11
ViciDial SVN Trunk v.2.4-334a build 110831-2038
Geil21
 
Posts: 62
Joined: Wed Nov 26, 2008 12:01 pm
Location: Orlando, FL

Postby williamconley » Tue Jan 25, 2011 2:06 pm

Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Geil21 » Tue Jan 25, 2011 4:07 pm

Thanks Bill,

I'll try it tonight
OpenSuSE v.11.3 32-bit w/ PAE
Asterisk v.1.4.39.2-vici
DAHDI v.2.4.1.2
LibPRI v.1.4.11.5
Sangoma VoiceTime v.1.0.11
ViciDial SVN Trunk v.2.4-334a build 110831-2038
Geil21
 
Posts: 62
Joined: Wed Nov 26, 2008 12:01 pm
Location: Orlando, FL

Postby Trying » Wed Jan 26, 2011 1:42 am

I can testify that the fix works :)
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Eugene » Wed Jan 26, 2011 11:39 am

By the way, setting default timezone in php.ini for apache has an interesting by-effect. Say, agent gui shows current OS time correctly, and management gui shows shifted current time. And agent time in his current state is shown as actual time + that shift in both guis.
ViciBox_v.7.x86_64-7.0.3.iso, Asterisk v.11.22.0-vici
ASTGUI Admin v. 2.12-552a b.160429-0835, ASTGUI Client v. 2.12-492c b.160428-1826
1 DB + 1 WEB + 1 Asterisk + 1 Archive servers
No extra software, No Digium/Sangoma Hardware
Eugene
 
Posts: 56
Joined: Tue Nov 09, 2010 5:22 am

Postby williamconley » Wed Jan 26, 2011 11:53 am

perhaps you should be more specific. ya lost me with "shifted current time", "current state" and "both guis".
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Eugene » Wed Jan 26, 2011 3:52 pm

Thank you for the lesson! I should be more careful with my English.

Ok. We use agent's gui and it shows time which is the same as OS shows. When we open administrator's gui it shows time being different from OS time. The difference 'shift' is the difference between time zone set in OS and default time zone set in php.ini.

There is 'main realtime report' in the administrator's gui. One of the columns in the report shows amount of time which says how long an agent is in his current state, namely, paused, waiting for a call, etc.

That 'amount of time' field can be seen in agent's gui as well, if enabled to be shown in 'View Agents' sidebar.

In both cases ('in both guis' :oops:), that amount of time is the sum of actual time period and the difference between timezones mentioned above.
ViciBox_v.7.x86_64-7.0.3.iso, Asterisk v.11.22.0-vici
ASTGUI Admin v. 2.12-552a b.160429-0835, ASTGUI Client v. 2.12-492c b.160428-1826
1 DB + 1 WEB + 1 Asterisk + 1 Archive servers
No extra software, No Digium/Sangoma Hardware
Eugene
 
Posts: 56
Joined: Tue Nov 09, 2010 5:22 am

Postby williamconley » Wed Jan 26, 2011 4:20 pm

difference between time zone set in OS and default time zone set in php.in
why are they different?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Eugene » Wed Jan 26, 2011 4:38 pm

why are they different?

I do not know. Probably ViciBox web server setup does that. Interesting, that ViciBox 3.1.5 had 10 hours timezone offset and 3.1.6 had 7 hours offset 'by defalt', i.e. after fresh install. (I am in GMT+2 zone)

I had to comment out default time zone in php.ini to make php use OS clock.[/quote]
ViciBox_v.7.x86_64-7.0.3.iso, Asterisk v.11.22.0-vici
ASTGUI Admin v. 2.12-552a b.160429-0835, ASTGUI Client v. 2.12-492c b.160428-1826
1 DB + 1 WEB + 1 Asterisk + 1 Archive servers
No extra software, No Digium/Sangoma Hardware
Eugene
 
Posts: 56
Joined: Tue Nov 09, 2010 5:22 am

Postby williamconley » Wed Jan 26, 2011 4:46 pm

perhaps you could ... change the time zone to the correct value?

http://www.vicidial.org/VICIDIALforum/v ... hp?t=15461
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Eugene » Thu Jan 27, 2011 2:43 am

perhaps you could ... change the time zone to the correct value?

My OS timezone is correct and OS time is in sync with trusted NTP servers.
http://www.vicidial.org/VICIDIALforum/v ... hp?t=15461 has a quote reading
It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting

That statement is very surprising to me. What could be trusted if not OS settings? I could understand that it was not safe to rely on the current php date() implementation and it was required to set default timezone in php.ini to use it flawlessly. That would be fine explanation.

Well, probably there might be another reasons to set php timezone. But without an explanation I find it hard to believe that I should not let php to use OS settings.
ViciBox_v.7.x86_64-7.0.3.iso, Asterisk v.11.22.0-vici
ASTGUI Admin v. 2.12-552a b.160429-0835, ASTGUI Client v. 2.12-492c b.160428-1826
1 DB + 1 WEB + 1 Asterisk + 1 Archive servers
No extra software, No Digium/Sangoma Hardware
Eugene
 
Posts: 56
Joined: Tue Nov 09, 2010 5:22 am

Postby williamconley » Thu Jan 27, 2011 8:41 am

since you are not likely to CHANGE the time zone in which you reside, and the time zone for php.ini will then only be set ... Once, setting it to match the OS time zone is fairly easy and a one-time operation.

But for security purposes they are apparently unsure that someone could not find a way (or SURE that someone already has) to manipulate the php time and use that as a method to exploit your system (unless you lock the setting by placing it directly into php.ini). ordinarily when this sort of statement is made, there is a safety reason involved and it should not be ignored. especially when the resolution is this simple.

The group working on php in this area and all other areas of all the other packages make decisions all the time. I'm not going to second guess all of them and micromanage a server to that extent. If the "Best Practices" instruction from the team working on that package say "set php.ini to the proper timezone ..." i'm not sure it's worth arguing about. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: Google [Bot] and 37 guests