Get CDR(answer) on active channel

hello,
I’m trying to get CDR(answer) on channel that is still active.
I’ve read core show function CDR and saw "Gets or sets a CDR variable"
but how to get it ?
Any ideas ?

Thanks

A.