[asterisk-users] Time variables in system application

khalid touati khalidtouati at gmail.com
Wed Jun 2 13:48:32 CDT 2010


thank you Barry, you're right, it is also working.
well, happy that i have a bunch of choices that work (after wrong output).
thanks for all!

2010/6/2 Barry Miller <asterisk-users at notanet.net>

> 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
>



-- 
Abdullah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100602/da859d7f/attachment.htm 


More information about the asterisk-users mailing list