Which codec?

We have a selection of codecs ticked in Asterisk SIP settings.
G.722 (aka wideband audio) is preferred.
Is there any way to see which codec was used for which call/s ?
It seems asterisk does NOT record the codec in the call details table.
Is this logged in some other place ?
Or does this belong on the wishlist ?