To enable media packets to pass directly between the endpoints, without the intervention of the Cisco Unified Border Element
(Cisco UBE) and to enable signaling services, enter the
media command in dial peer voice, voice class, or voice service configuration mode. To return to the default behavior, use the
no form of this command.
media [bulk-stats | flow-around | flow-through | forking | monitoring [video]
[max-calls] | statistics | transcoder high-density | anti-trombone | sync-streams]
no media [bulk-stats | flow-around | flow-through | forking | monitoring [video]
[max-calls] | statistics | transcoder high-density | anti-trombone | sync-streams]
Syntax Description
bulk-stats
|
(Optional) Enables a periodic process to retrieve bulk call statistics.
|
flow-around
|
(Optional) Enables media packets to pass directly between the endpoints, without the intervention of the Cisco UBE. The media
packet is to flow around the gateway.
|
flow-through
|
(Optional) Enables media packets to pass through the endpoints, without the intervention of the Cisco UBE.
|
forking
|
(Optional) Enables the media forking feature for all calls.
|
monitoring
|
(Optional) Monitors the media voice stream quality for all calls or a maximum number of calls.
|
video
|
(Optional) Specifies video quality monitoring.
|
max-calls
|
(Optional) Maximum number of calls that are monitored.
|
statistics
|
(Optional) Enables media monitoring.
|
transcoder
high-density
|
(Optional) Converts media codecs from one voice standard to another to facilitate the interoperability of devices using different
media standards.
|
anti-trombone
|
(Optional) Enables media anti-trombone for all calls. Media trombones are media loops in SIP entity due to call transfer
or call forward.
|
sync-streams
|
(Optional) Specifies that both audio and video streams go through the DSP farms on Cisco UBE and Cisco Unified CME.
|
Command Default
The default behavior of the Cisco UBE is to receive media packets from the inbound call leg, terminate them, and then reoriginate
the media stream on an outbound call leg.
Command Modes
Dial peer voice configuration (config-dial-peer)
Voice class configuration (config-class)
Voice service configuration (config-voi-serv)
Command History
Release
|
Modification
|
12.3(1)T
|
This command was introduced.
|
12.4(11)XJ2
|
This command was modified. The
statistics keyword was introduced.
|
12.4(15)T
|
This command was integrated into Cisco IOS Release 12.4(15)T.
|
12.4(20)T
|
This command was modified. The
transcoder and
high-density keywords were introduced.
|
15.0(1)M
|
This command was modified. The
forking and
monitoring keywords and the
max-calls argument were introduced.
|
15.1(3)T
|
This command was modified. The
anti-trombone keyword was introduced.
|
15.1(4)M
|
This command was modified. The
sync-stream keyword was added.
|
15.2(1)T
|
This command was modified. The
video keyword was added.
|
Cisco IOS XE Release 15.0(1)S
|
The
bulk-stats keyword was added.
|
Cisco IOS XE Amsterdam 17.2.1r |
Introduced support for YANG models.
|
Usage Guidelines
Note
|
media
bulk-stats and media
statistics are only supported.
|
With the default configuration, the Cisco UBE receives media packets from the inbound call leg, terminates them, and then
reoriginates the media stream on an outbound call leg. Media flow-around enables media packets to be passed directly between
the endpoints, without the intervention of the Cisco UBE. The Cisco UBE continues to handle routing and billing functions.
Media flow-around for SIP-to-SIP calls is not supported.
Note
|
The Cisco UBE must be running Cisco IOS Release 12.3(1) or a later release to support media flow-around.
|
You can specify media flow-around for a voice class, all VoIP calls, or individual dial peers.
The
transcoder
high-density
keyword can be enabled in any of the configuration modes with the same command format. If you are configuring the
transcoder
high-density keyword for dial peers, make sure that the
media
transcoder
high-density command is configured on both the in and out-legs.
The software does not support configuring the
transcoder
high-density keyword on any dial peer that is to handle video calls. The following scenarios are not supported:
-
Dial peers used for video at any time. Configuring the
media
transcoder
high-density command directly under the dial-peer or a voice-class media configuration mode is not supported.
-
Dial peers configured on a Cisco UBE used for video calls at any time. The global configuration of the
media
transcoder
high-density command under voice service configuration mode is not supported.
Note
|
Themedia
bulk-stats
command may impact performance when there are a large number of active calls. For networks where performance is crucial in
customer's applications, it is recommended that the
media
bulk-stats
command not be configured.
|
To enable the
media command on a Cisco 2900 or Cisco 3900 series Unified Border Element voice gateway, you must first enter the
mode
border-element command. This enables the
media
forking and
media
monitoring commands. Do not configure the
mode
border-element command on the Cisco 2800 or Cisco 3800 series platform.
You can specify media anti-trombone for a voice class, all VoIP calls, or individual dial peers.
The
anti-trombone keyword can be enabled only when no media interworking is required in both the out-legs. The anti-trombone will not work
if call leg is flow-through and another call leg is flow-around.
Examples
The following example shows media bulk-stats being configured for all VoIP calls:
Device(config)# voice service voip
Device(config-voi-serv)# allow-connections sip to sip
Device(config-voi-serv)# media statistics
Examples
The following example shows media flow-around configured on a dial peer:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# media flow-around
The following example shows media flow-around configured for all VoIP calls:
Device(config)# voice service voip
Device(config-voi-serv)# media flow-around
The following example shows media flow-around configured for voice class calls:
Device(config)# voice class media 1
Device(config-class)# media flow-around
Examples
The following example shows media flow-through configured on a dial peer:
Device(config)# dial-peer voice 2 voip
Device(config-dial-peer)# media flow-through
The following example shows media flow-through configured for all VoIP calls:
Device(config)# voice service voip
Device(config-voi-serv)# media flow-through
The following example shows media flow-through configured for voice class calls:
Device(config)# voice class media 2
Device(config-class)# media flow-through
Examples
The following example shows media monitoring configured for all VoIP calls:
Device(config)# voice service voip
Device(config-voi-serv)# media statistics
The following example shows media monitoring configured for voice class calls:
Device(config)# voice class media 1
Device(config-class)# media
statistics
Examples
The following example shows the
media
transcoder command configured for all VoIP calls:
Device(config)# voice service voip
Device(conf-voi-serv)# media transcoder high-density
The following example shows the
media
transcoder command configured for voice class calls:
Device(config)# voice class media 1
Device(config-voice-class)# media transcoder high-density
The following example shows the
media
transcoder command configured on a dial peer:
Device(config)# dial-peer voice 36 voip
Device(config-dial-peer)# media transcoder high-density
Examples
The following example shows how to configure audio call scoring for a maximum of 100 calls:
mode border-element
media monitoring 100
Examples
The following example shows the
media
anti-trombone command configured for all VoIP calls:
Device(config)# voice service voip
Device(conf-voi-serv)# media anti-trombone
The following example shows the
media
anti-trombone command configured for voice class calls:
Device(config)# voice class media 1
Device(config-voice-class)# media anti-trombone
The following example shows the
media
anti-trombone command configured on a dial peer:
Device(config)# dial-peer voice 36 voip
Device(config-dial-peer)# media anti-trombone
Examples
The following example specifies that both audio and video RTP streams go through the DSP farms when either audio or video
transcoding is needed:
Device(config)# voice service voip
Device(config-voi-serv)# media transcoder sync-streams
The following example specifies that both audio and video RTP streams go through the DSP farms when either audio or video
transcoding is needed and the RTP streams flow around Cisco Unified Border Element.
Device(config)# voice service voip
Device(config-voi-serv)# media transcoder high-density sync-streams