Using local channels to set up the CDR collection

When I am using local channels my CDR table gets populated with 3 records which includes all information which I required but what happening is when I am using mixmonitor application before dial to get the recording then in that case my CDR table gets populated with 2 records which has incomplete info.
So how can we achieve both the things like 3 records + recording?

Any idea would be appreciated.