Create custom CDR to only save some calls?

Hi, Can I create a custom CDR to only save the calls I want?

I just want to save in CDR the calls I made to National numbers.

I just want to save in another CDR the calls I made to Internal numbers.

What I need to edit?
cdr.conf

you can write a script using AGI to write your own custom cdr .

Or use accountcodes and enable the CSV accountcode separated storage.