<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The codec selection on the gateway is defined by the codec-class or codec command applied to the outbound/inbound voip dial-peer.  On the CUCM server  the maximum bandwidth used for a voice call between two devices is set by the region configuration.  Because the region is simply a max value, if one party in a g.711 region only supports g.729 then assuming the other party also supports g.729 the call will be set up using that codec.<div><br></div><div>Is the H.245 TCS info you supplied below from the gateway or the CUCM?  </div><div><br><div> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">-Ryan</font></p>  </div><br><div><div>On Jan 7, 2009, at 9:51 AM, Andy Yerofyeyev wrote:</div><br class="Apple-interchange-newline">Hello , <br><br>I'll appreciate if you can help me understand how codecs is selected and how to restrict gateway to use only G711 when call placed via H323 gateway.<br>I created H323 gateway , assigned gateway to same device pool and location as all of my phones , but when I place call thru this gateway I can see only g729 codec in H245 capabilities .<br> <br>debug h245 asn on gateway itself shows about incoming call (from CM)<br clear="all">      capabilityTable<br>      {<br><br>        {<br>          capabilityTableEntryNumber 6<br>          capability receiveAudioCapability : g729AnnexA : 2<br>         },<br>        {<br>          capabilityTableEntryNumber 5<br>          capability receiveAudioCapability : g729 : 2<br>        }<br>      }<br><br>      capabilityTable<br>      {<br><br>        {<br>          capabilityTableEntryNumber 1<br>           capability receiveAudioCapability : g729 : 6<br>        },<br>        {<br>          capabilityTableEntryNumber 44<br>          capability receiveAndTransmitUserInputCapability : hookflash : NULL<br>        },<br>         {<br>          capabilityTableEntryNumber 45<br>          capability receiveAndTransmitUserInputCapability : basicString : NULL<br>        },<br>        {<br>          capabilityTableEntryNumber 46<br>          capability receiveAndTransmitUserInputCapability : dtmf : NULL<br>         }<br>      }<br><br>If I use Non-gatekeeper controlled intracluster trunk situation pretty the same. Just FUI , location bandwidth is Unlimited and 711 codec configured to use inside Region to which phones and gateway belongs to. If call placed from one 7960 to anoter they use 711 codec.<br> <br>If I restrict to use only 711 codec on gateway itself (by using codec-class on incoming dial-peer) call failed.<br><br><br><br>-- <br>Best Regards,<br><br>Andriy Yerofyeyev CCIE #21607<br><a href="http://www.linkedin.com/in/ccie21607">http://www.linkedin.com/in/ccie21607</a><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">cisco-voip mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a></div> </div><br></div></body></html>