Howto log codec in cdr?

Hi forum
Is it possible to get Asterisk to log the codec details for each call in the cdr database ?
TIA’s for any tips or clues.

It might be possible to set a user variable/the user field in the h extension, but I’m not sure if the codec information is still available then.

Setting an inheritable (__prefix) on the variable witch containg the codec info, will still makes the variable accesible from the h extension

But the codec isn’t determined until after the Dial application is started!

However, you might be able to use a Dial subroutine to set the variable;