Call recording Archiving


This is my first post on the forum so want to say Hello to everybody!

I am struggling with some solution for proper call recording archiving. I found Moshe Brevda blog with the following.

In Advanced Settings (your going to need Display Readonly Settings = true and Override Readonly Settings = true), for Override Call Recording Location enter the following: ${STRFTIME(${EPOCH},,%Y/%m/%d)}

Hit the little green submit button, and the orange Apply Changes bar. The next time you place a call that is recorded you should find it properly “archived” under the date the call was placed.

Unfortunately after making those changes system is not recording as it cannot create a directory for the recording file. It actually expects a directory to be created already.

[2011-12-14 20:11:24] ERROR[19130] app_mixmonitor.c: Cannot open /var/spool/asterisk/monitor/Wed Dec 14 20:10:31 2011/OUT401-20111214-201120-1323893480.2775.gsm [2011-12-14 20:17:06] WARNING[19186] file.c: Unable to open file /var/spool/asterisk/monitor/Wed Dec 14 20:10:31 2011/OUT401-20111214-201701-1323893821.2777.gsm: No such file or directory [2011-12-14 20:17:06] ERROR[19186] app_mixmonitor.c: Cannot open /var/spool/asterisk/monitor/Wed Dec 14 20:10:31 2011/OUT401-20111214-201701-1323893821.2777.gsm I think a solution would be creating a directory by the system using cron job but I don't know what is the proper bash syntax to create directory with following format ${STRFTIME(${EPOCH},,%Y/%m/%d)}

Could you please advise.