Default Codec for Voip Dial-Peer: G729

I didn’t know that! The default codec used by the voip dial-peers is G.729, I got the proof when I was calling from a PSTN phone towards H.323 branch router over T1 and passing it to central CUCM over voip. And also this was the reason I was not getting MoH at PSTN because MoH stream was multicasting over G711 only! Though my H.323 gateway and the destination phone was located on the same region but the call was establishing over G729. Then I found the issue after seeing the result of the command ‘sh voice call summary’:

Branch#sh voice call summary
PORT           CODEC     VAD VTSP STATE            VPM STATE
============== ========= === ==================== ======================
0/0/0:23.1      g729r8 n  S_CONNECT             S_TSP_CONNECT’

I was so surprised!! It’s the root cause my MoH is not working!!! I just asked one of my friend (Olivier: http://ccievoice.ksiazek.be) about the issue, he smiled and told me it’s normal to use g729 by default for the dial-peers unless I change from the voip dial-peer towards CUCM. Hats of my friend! I just changed the codec to G711 and it’s was working like magic.

!
dial-peer voice 9 pots
translation-profile incoming PstnInStripTo4
incoming called-number .
direct-inward-dial
!
dial-peer voice 90 voip
destination-pattern 3…
session target ipv4:10.10.10.11 ! CUCM IP
codec g711ulaw
no vad
!

After configuring that:

SB#sh voice call summary

PORT           CODEC     VAD VTSP STATE            VPM STATE

============== ========= === ==================== ======================

0/0/0:23.1      g711ulaw n  S_CONNECT             S_TSP_CONNECT

0/0/0:23.2      –          –  –

And my MoH issue is fixed! It was a good learning for me. 🙂

Advertisements

About Mijanur Rahman
I have started blogging to save and share my study notes, findings and research notes as I have already lost some important! Wish you find something helpful from my blogs, if you have anything to ask you are always welcome to comment or contact me directly. Thanks, Md. Mijanur Rahman

5 Responses to Default Codec for Voip Dial-Peer: G729

  1. lakshman says:

    i am testing voip in wimax CPEs. when i am calling from one phone to other phone i am getting the ring but i am not able to here my voice…….?????? what may be the proble.
    These CPEs are having RJ11 port…..

  2. dreamforccie says:

    Yes, it does! If you have such requirement simply try the method you have just mentioned. Additionally please follow the link below:

    https://www.cisco.com/application/pdf/paws/5215/moh_faq_5215.pdf

  3. Jaga says:

    Thanks Mijanur for your contribution. How about using voice class codec template with G711u and g729r8 on the dialpeer instead of hardcoding G711u on it? Does the Dialpeer select the right codec based on the incoming traffic? (G711u for MOH and G729r8 for RTP traffic/)

  4. Pingback: 640-460 Study Materials | voip equipment blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: