Problem with ${STRFTIME} function


I’m trying to use STRFTIME to be used in naming a recording file. Problem is when the file is recorded, it’s not correct.

My use is as follows:
exten => s,n,Set(CALLFILENAME=/var/www/html/consults/CONSULT-${STRFTIME(,%C%y-%m-%d-%H%M%S)}

The filename that is generated is: CONSULT-2010-03-31-1352%.wav

Obviously that isn’t correct. The % is supposed to be the seconds, but it looks like the S is getting cut out of the formatt string.

Any ideas?



answered in trixbox forum.
dialplan parser gives no warnings on syntax errors and you are missing the right parent