You need to enforce a specific codec for calls traversing a CUBE. Where is the most appropriate place to apply this configuration?
This is the standard method for codec selection on a dial-peer.
Why this answer
A voice class codec is defined globally and then applied to the specific dial-peer using the voice-class codec command.