I am using asterisk along with freepbx . When recording is enabled for a extension the call record file made in /var/spool/asterisk/monitor contains information like OUT(extension number)-(timestamp)-(uniqueid).wav . This can be a big mess if there are more than 1000-2000 files in that folder and very hard to locate a call recording based on call time and extension number who dialled. I need to put something like outgoing number dialled within call file name instead of uniqueid .. After watching in console i  opened up /var/lib/asterisk/agi-bin/recordingcheck and saw that it is setting callfilename variable with extension number,time,unique id , etc. so i edited and instead of $uniqueid i put $DIALEDPEERNUMBER ( saw in 
<a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+variables">http://www.voip-info.org/wiki/index.php?page=Asterisk+variables</a> ) but its just not giving dialed number and hence callfilename &nbsp;doesnt contain outgoing number . Any suggestions how can i get outgoing call number in recording file ?