1
votes

I installed asterisk to make a voicemail server.
functions are all working unless in timeformat. here's scenario.

When i dial no. and record for voicemail it emails me a right timeformat but in msg.txt
its always show UTC format.

Server time.

Tuesday, 01 October, 2013 11:09:35 AM PHT -1.042756 seconds

asterisk voicemail.conf

tz=ph
[zonemessages]
ph=Asia/Manila|'vm-received' Q 'digits/at' IMp

asterisk extension.conf

exten => _XXX,1,Answer()
exten => _XXX,2,AGI(sample.agi)
exten => _XXX,3,VoiceMail(${VMNUMBER},u,tz=ph)
exten => _XXX,4,Playback(vm-goodbye)
exten => _XXX,5,Hangup()

asterisk -rx "core show version"

Asterisk 11.5.1 built by root@asterisk on a x86_64 running Linux on 2013-10-01 02:31:27 UTC

vim msg000X.txt in voicemail folder

callerid="1234" <1234>
origdate=Tue Oct 1 02:47:36 AM UTC 2013
origtime=1380595656

thanks in advance
Owen

1
Why u think that is problem? Asterisk always save time in GMT. But have play in specified format(sure if you configured ok and not did syntax errors)arheops
hi @arheops, yup theres no syntax error. i always monitor asterisk in debug mode but still can get what the cause of problem btw i had a web-based voicemail that read msg.txt.user2833274
so you need fix web,not asterisk.arheops
No sir, in other forum i read about that they having a same issue with me. my app only reading the msg00x.txt and display to web.user2833274
if asterisk plaiing ok, your app have check tonezone. asterisk have do nothing here.arheops

1 Answers

0
votes
root@server:/usr/local/etc/asterisk # date

Wed Oct 9 09:47:54 COT 2013

root@server:/usr/local/etc/asterisk # asterisk -rx "core show version"

Asterisk 11.5.1 built by root @ mydomain.com on a amd64 running FreeBSD on 2013-10-08 04:09:27 UTC