If you want to record outgoing calls you should load some modules for your Asterisk. You will do this if you put in end of file /etc/asterisk/modules.conf next content:

load => res_monitor.so
load => res_agi.so
load => res_features.so
load => app_db.so

After this you will change your dial plan according to this:

exten => _9.,1,NoOP
exten => _9.,2,Set(CALLERPRES()=prohib)
exten => _9.,3,Set(rec=${DB(registra/${CALLERIDNUM})})
exten => _9.,4,Gotoif($[ "${rec}=1" ]?10:20)
exten => _9.,10,MixMonitor(REC-${STRFTIME(${EPOCH},GMT-3,%C%y%m%d%H%M)}_${CALLERID(num)}.wav,b)
exten => _9.,11,Goto(15)
exten => _9.,15,Macro(trunkdial,${TRUNK}/${EXTEN:1})

This will record calls in format date+time_callerid_number which make call. For example like this one: REC-201102161424_100.wav, where 100 is my extension which make outside call.

You can find this files in /var/spool/asterisk/monitor/ directory. It is good to consider about some cron job, because this files can overload your system.