Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Configure VOIP GW to use G723 code on terminating end

Hi All,

I'm keep having probelm with my terminating GW as the call coming in is using codec G723r63, maybe i know how to configure the GW AS5300 to negoiate the termination calls codec to G723r63


Cisco Employee

Re: Configure VOIP GW to use G723 code on terminating end

You will need to ensure that when the incoming call arrives at your AS5300, that it matches an incoming dial-peer that has the G723r63 codec specified. If the incoming call matches the default codec, then the call will fail.

If you have multiple calls arriving at the gateway using a variety of codecs, then you will have to configure a voice class that contains a list of codecs that you will accept, and then apply the voice class to the incoming dial-peer.

The following links will help give you an understanding of Dial-peer matching in the router.

The following link talks about the G723 codec differences.

The following link gives an example of configuring the voice class.

New Member

Re: Configure VOIP GW to use G723 code on terminating end


Try this, it should work.

NOTE: the 4444 is a prefix.



voice class codec 1

codec preference 1 g723ar63 bytes 48

codec preference 2 g723r63 bytes 48

codec preference 3 g729br8 bytes 40

codec preference 4 g729r8 bytes 40

codec preference 5 g723ar53 bytes 40

codec preference 6 g723r53 bytes 40


dial-peer voice 44440 voip

max-conn 15

incoming called-number 4444T

voice-class codec 1

dtmf-relay cisco-rtp

fax rate 9600


dial-peer voice 44441 pots

max-conn 15

destination-pattern 4444T

progress_ind setup enable 3


port 2:0