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

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to