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