Changing Recording File Name

Hi all,
FreePBX recording mudule, by default, saves recording file name with Date_Time_ID.wav. I would like to change it a bit with the channel name (or number) adding to it. Example: 20100302_051245_123456.wav, changed to 20100302_051245_ext1002.wav.
Please help,
Thank you so much!

Please help!!!

I am a firm believer in “figuring it out” but I am happy to point you in the right direction…

The file you need to edit is:

/var/lib/asterisk/agi-bin/recordingcheck

Make sure you change the permissions on /var/lib/asterisk/agi-bin/recordingcheck so FreePBX does not overwrite it when reloading.

If you upgraded to FreePBX 2.7 then this file has been moved into the dialplan. If that is the case then I have no idea how to help you and you’ll need to “figure it out”. :slight_smile:

Hi, (I’m sorry, I could not see your name in your replied post)
Following your direction, I opened the file and changed the ${uniqueName} to ${Exten} in all 3 functions. I restarted the computer, and test the recording …But the recording file name’s still not changed. I opened that file again. Codes I changed are still there . I test it again, again but It did not work.
Could you please help me a hand on this?
Thank you very much!