R0106-HP MSR Router Series Voice Configuration Guide(V7)
58
Configuring codecs for a VoIP entity
By default, a VoIP entity has four codecs g729r8, g711alaw, g711ulaw, and g723r53 in descending
order of priority.
You can use one of the following methods to configure codecs for a VoIP entity:
• Method 1: Configure codecs directly for a VoIP entity.
• Method 2: Create a codec template, assign priorities to codecs in the codec template, and bind the
codec template to a VoIP entity.
Two parties must have the same codecs to communicate with each other. You can use the display voice
sip call command (see Voice Command Reference) to view the codec used by two parties.
To configure codecs for a VoIP entity (method 1):
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter voice view.
voice-setup N/A
3. Enter dial program view.
dial-program N/A
4. Create a VoIP entity and enter
VoIP entity view.
entity entity-number voip N/A
5. Specify a codec for the VoIP
entity.
codec { g711alaw | g711ulaw |
g723r53 | g723r63 | g726r16 |
g726r24 | g726r32 | g726r40 |
g729a | g729br8 | g729r8 }
[ bytes payload-size ]
By default, no codecs are
configured.
To configure codecs for a VoIP entity (method 2):
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter voice view.
voice-setup N/A
3. Create a codec template.
voice class codec tag
By default, no codec templates
exist.
4. Assign a priority to a codec in
the codec template.
codec preference priority
{ g711alaw | g711ulaw |
g723r53 | g723r63 | g726r16 |
g726r24 | g726r32 | g726r40 |
g729a | g729br8 | g729r8 }
[ bytes payload-size ]
By default, no codecs exist in a
template.
Repeat this command to assign
priorities to more codecs.
5. Return to voice view.
quit N/A
6. Enter dial program view.
dial-program N/A
7. Create a VoIP entity and enter
VoIP entity view.
entity entity-number voip N/A
8. Bind the codec template to the
VoIP entity.
voice-class codec tag
By default, the binding does not
exist.