CDR is not working after upgrading to asterisk 1.4 from asterisk 1.2

Hi,

I recently upgraded my asterisk from 1.2 to 1.4 . Since then CDR is not working.
Is there something I can do to solve this problem?

Finally I installed freepbx again (./install_amp) and it worked after amportal restart.