[asterisk-users] STRFTIME function declared in globals context
Tilghman Lesher
tlesher at digium.com
Tue Jul 13 13:15:49 CDT 2010
On Tuesday 13 July 2010 11:30:44 Warren Selby wrote:
> I'm trying to declare a few date-related global variables to ease my
> dialplan. When I declare the following in the [globals] context of
> extensions.conf, I get unexpected results:
>
> YEAR = ${STRFTIME(${EPOCH},,%Y)}
> MONTH = ${STRFTIME(${EPOCH},,%m)}
> DAY = ${STRFTIME(${EPOCH},,%d)}
> TIMESTAMP = ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}
When you load the dialplan, do you see the global variables getting set?
That would at least tell you whether the problem lies at the point where the
values are loaded into memory, or later, at evaluation time.
--
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-users
mailing list