Call Recording Unique ID

Hey guys,

A previous technician here had calls recording in a way that would store them in /var/spool/asterisk/monitor/

and then a year folder/month/day

for example : var/spool/asterisk/monitor/07/12/02/

the file structure was in such a way that it was like

var/spool/asterisk/monitor/2007/12/02/OUT743-20071202-164239-1159976559.27217.wav

I’ve ported my new isntallation and used the old database so i had all the CDR data. My current installation via freepbx is simply recording them as /spool/monitor/OUT103–1176379959.25.wav

In my database the UniqueID field is empty, how can I get the call structure to match and directories be created etc? what files are involved?