[asterisk-users] Logging codec used in CDR

Steve Johnson
Fri, 09 Jul 2010 20:54:42 -0000

Happy Friday everyone,

Is there a way to log the negotiated codec that was used for each call
in CDR or in a separate log file?

This is for SIP-based calls, if that matters.

Perhaps there is some variable that can be queried as part of the
dialing script;
Or is it possible to grab the codec name using the "exten =>h,"
after
the call completes...

Thanks in advance for all suggestions.

S