Found the answer myself: when "voice-class codec" is configured on INBOUND
dialpeer, then in H.245 capabilities exchange the router advertises/accepts
only the codec which is configured on OUTBOUND dialpeer.
Example 1:
CCM>GKT>BR2 (inbound DP 1003)->(outbound DP 3600)CUE
H.245 sh
Hello all,
I have the following on BR2:
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
!
dial-peer voice 1003 voip#inbound dia