R0106-HP MSR Router Series Voice Command Reference(V7)

91
Usage guidelines
The device supports a maximum of 16 codec templates.
Examples
# Create codec template 1.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] voice class codec 1
[sysname-voice-class-codec1]
voice-class codec
Use voice-class codec to bind a codec template to a voice entity.
Use undo voice-class codec to delete the binding.
Syntax
voice-class codec tag
undo voice-class codec tag
Default
The binding does not exist.
Views
POTS entity view, VoIP entity view
Predefined user roles
network-admin
Parameters
tag: Specifies a codec template by its number in the range of 1 to 2147483647.
Usage guidelines
You can bind a nonexistent codec template to a voice entity, but the codec template takes effect only after
you use the codec preference command to assign priorities to codecs.
Only one codec template can be bound to a voice entity. If you configure the voice-class codec
command multiple times, the most recent configuration takes effect.
Examples
# Bind codec template 1 to VoIP entity 10.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 10 voip
[Sysname-voice-dial-entity10] voice-class codec 1
Related commands
codec preference
voice class codec