Codec Configurations
You can perform the codec configuration, using the ios-voice:codec configuration mode. The ios-voice:codec configuration mode is a part of Cisco-IOS-XE-voice module. The following operations are allowed in the ios-voice:codec configuration mode.
Operations | X-path |
---|---|
get, get-config, edit-config | /native/ios-voice:codec |
Select Codec Configuration Mode
To enter into the ios-voice:codec configuration mode, follow the x-path provided in the below table.
Object | X-path |
---|---|
ios-voice:codec | /native/ios-voice:codec |
Configuration Recommendations
The codec profile can be configured as follows:
- codec profile <1-1000000> profile
The ios-voice:codec configuration mode allows you to perform the following codec configurations.
Newly Added YANG Models in Release Cisco IOS XE 17.7.1
The following YANG models are supported from Cisco IOS XE 17.7.1:
- codec type
- codec profile
Codec configurations and X-path details
Object | Description | X-path | Value | Prerequisites | Remarks |
---|---|---|---|---|---|
codec profile | To define profile for the codec. | /native/ios-voice:codec/ios-voice:profile |
N/A | N/A | N/A |
id | To define profile tag for the codec. | /native/ios-voice:codec/ios-voice:profile/ios-voice:id |
1-1000000 | N/A | N/A |
codec-type | To name an audio and video codec. | /native/ios-voice:codec/ios-voice:profile/ios-voice:codec-type |
aacld, h263, h263+, h264, mp4a-latm, opus | N/A | N/A |
clock-rate | To set clock rate for codec. | /native/ios-voice:codec/ios-voice:profile/ios-voice:clock-rate |
0-1000000 | N/A | N/A |
fmtp | To set fmtp string for this codec. | /native/ios-voice:codec/ios-voice:profile/ios-voice:fmtp |
N/A | N/A | N/A |
Examples: Codec Configuration
Requesting 'EditConfig'
Sending:
# 1121
<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1f89fce3-74f0-4ae6-a6ac-0246981d3f1e">
<nc:edit-config>
<nc:target>
<nc:running/>
</nc:target>
<nc:config>
<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<voice xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-voice">
<class>
<codec>
<codec-tag>10</codec-tag>
<codec>
<preference>
<preference-tag>1</preference-tag>
<codec-type>mp4a-latm</codec-type>
<profile>1</profile>
<fmtp-select-one>
<bitrate>16000</bitrate>
</fmtp-select-one>
</preference>
</codec>
<video>
<codec>
<codec-type>h263</codec-type>
<profile>2</profile>
</codec>
</video>
</codec>
</class>
</voice>
<dial-peer xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-voice">
<voice>
<dialpeertag>1</dialpeertag>
<type>voip</type>
<rtp>
<payload-type>
<opus>120</opus>
</payload-type>
</rtp>
</voice>
</dial-peer>
<codec xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-voice">
<profile>
<id>1</id>
<codec-type>aacld</codec-type>
<clock-rate>
<range>3</range>
</clock-rate>
<fmtp>
<fmtp-string>cisco123</fmtp-string>
</fmtp>
</profile>
</codec>
</native>
</nc:config>
</nc:edit-config>
</nc:rpc>
##
Received message from host
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:1f89fce3-74f0-4ae6-a6ac-0246981d3f1e" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>