How to set time for Asterisk?


#1

Hi, i have wrote a dialplan to when client hangup display the time, like this

exten =>_XXX,1,Answer()
exten =>_XXX,2,Dial(SIP/206)
exten =>h,1,NoOp(Hangup at: [color=#00BF00]${STRFTIME(${EPOCH},GMT-8,%I:%M:%S %p)}[/color])

But the asterisk says it was: 06:41:30 PM
But if i execute this in the Terminal:
date
It displays Wed Aug 3 10:41:38 UTC 2011

I was thinking asterisk use the same date, time like the System.

How to fix that?


#2


Change here the GMT-8 to your correct timezone

Change here the GMT-8 to your correct timezone


#3

Thanks, im going to test it