Good morning, I'm trying to get the cdr logs from asterisk with the correct timing, however I'm not managing to do so.
I've set up my computer as a time server and modified the /etc/init.d/ntpdate file in the MPs to get my reference. After changing the /etc/config/system file to SAST-2 the time zone here in South Africa, I got the same time in both devices.
However, in the cdr log file it kept on reporting the time as if UTC was used. I found that I had to change the "usegmtime" to no in /etc/asterisk/cdr.conf. I did it and rebooted, but still the timestamps are showing UTC timing.
If I log on the Asterisk CLI modifying the prompt to give me the time. It's not only CDR that reports with UTC timing, but asterisk too.
root@MP-42:~# date
Tue Aug 14 12:06:50 SAST 2012
root@MP-42:~# ASTERISK_PROMPT='[%d %t]%H*> '
root@MP-42:~# export ASTERISK_PROMPT
root@MP-42:~# asterisk -r
Asterisk 1.4.11, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <mark...@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.11 currently running on MP-42 (pid = 765)
[2012-08-14 10:07:08]MP-42*>
I've been reading around but I couldn't find the solution. Do you know how can I solve this issue?
Thanks a lot
Carlos