[asterisk-users] Time variables in system application
Barry Miller
asterisk-users at notanet.net
Wed Jun 2 12:58:42 CDT 2010
On Wed, Jun 02, 2010 at 10:26:12AM -0400, khalid touati wrote:
> Hi Guys,
> for people who may have the same issue:
> i was just not using STRFTIME the right way, after consulting docs, i'm
> using it like this:
> exten =>
> 8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},America/New_York,%F_%T)})
>
> instead of this:
> exten =>
> 8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T)})
> and it's displaying the right time now!!
If all you want is your system's idea of the current local time, you can
simplify it to:
exten =>
8888,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(,,%F_%T)})
Sorry for replying so late. I somehow missed this thread back in April.
--
Barry
More information about the asterisk-users
mailing list