On Monday 12 May 2008 01:36:04 Daniel Grad wrote:
> I need to use the ${DATETIME} macro inside the filename saved by Record,
> but the colons (':') used in the time interfere with the command
> (everything after the colon is interpreted as the format I wish to save
> to):
>
> My command is:
> Record(/path/to/voicemail/${EXTEN}-${DATETIME}-${UNIQUEID}:wav)
>
> I need some function to escape the colons inside DATETIME... I'm sure
> it's something really basic, but I couldn't find it

Use ${STRFTIME()} instead to get the format that you want and do not
include colons in the format.  "core show function STRFTIME" should give
you the details on this dialplan function.

-- 
Tilghman

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to