[SOLVED]How to get DTMF sequence and spent time on CDR?

Hi,
Users can dial a common number on my asterisk box, and then select extensions ( there can be more than one extensions per a call) by giving DTMF.

I want to record time spent on each extension( DTMF) in CDR (cdr-csv/Master.csv).

Is there a way to use ForkCDR() for this? At least to have multiple CDR for one call.
or else concatenating details in CDR(userfield)?

Appreciate your response.

Thanks,
Pradeepa.

This is solved by maintaining a variable which records DTMF and the duration.