[grabadora]
; used to record prompts
exten => _205,1,Answer
exten => _205,2,Wait(2)
exten => 205,3,Record(grabacion%d:gsm)
exten => _205,4,Wait(4)
exten => _205,5,Playback(${RECORDED_FILE})
exten => _205,6,Wait(2)
exten => _205,7,Hangup()
i want to assing to the recoding file the current date , y tried replacing the recording name for the variable {DATETIME} or ${TIMESTAMP} but it doesnt work, any sugestion
You don’t state what version of Asterisk you are running.
${DATETIME}: Current date time in the format: DDMMYYYY-HH:MM:SS This is deprecated in Asterisk 1.2, instead use :${STRFTIME(${EPOCH},%d%mNaVH:NaVS)})
${TIMESTAMP}: Current date time in the format: YYYYMMDD-HHMMSS This is deprecated as of Asterisk 1.4, instead use :${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)})