Configuring Local Media Playback
You can configure local media playback either with or without transcoding resources. All configurations are RTC supported.
RTC Support
Note:
If you change an existing media file but preserve the filename, you must reboot for the changes to take effect.RBT TrFO Configuration
You configure the SBC to avoid using transcoding resources by setting the feature-trfo parameter in the applicable realm-config .
Configuring Local Media Playback with Transcoding Resources
You can configure local media playback with the transcoding-based method on a session-agent, sip-interface or realm-config, using this precedence when determining which configuration to use if there are overlapping configurations. This example procedure configures playback on a realm using the 180-force trigger.
The verify-config command checks and reports on the following playback configuration issues:
- ringback-file refers to a file that exists under /code/media/
- ringback-file refers to a file that does not surpass the maximum size allowed 5 MB
- ringback-trigger and playbackConfig are not both configured
Configuring Network Announcements for 4xx/5xx/6xx Responses
You map error codes to media files on the session router and enable network announcements for them on a sip-interface or realm-config, with the realm taking precedence when there are overlapping configurations.
Configuring the Error Announcement Map
You map error codes to media files on the session router in the error-announcement-map element. The same map is used for all realms and interfaces for which announcement-on-error is set to enabled.
You can add up to 100 entries, update existing entries, and delete entries using the standard ACLI configuration commands. Each entry must contain a unique combination of sip-response-code and q850-cause-code. You cannot map the same combination to two different announcement files.
For example, because the following three entries use different combinations of SIP and Q.850 codes, they are all valid, even though the individual codes are the same:
error-announcement-map
entries
sip-response-code 400
q850-cause-code 18
announcement-file file1.pcm
entries
sip-response-code 400
announcement-file file2.pcm
entries
q850-cause-code 18
announcement-file file3.pcmHowever, adding the following entry would be invalid, because the specified code combination already matches file1.pcm:
error-announcement-map
entries
sip-response-code 400
q850-cause-code 18
announcement-file file2.pcmEnabling Network Announcements for Realms and Interfaces
You enable realms and interfaces to play network announcements with the announcement-on-error parameter. The same error-announcement-map applies to all enabled realms and interfaces. In case of overlapping configurations, the realm takes precedence.
- Access one of the following configuration elements:
- realm-config:
ORACLE# configure terminal ORACLE(configure)# media-manager ORACLE(media-manager)# realm-config ORACLE(realm-config)# - sip-interface:
ORACLE# configure terminal ORACLE(configure)# session-router ORACLE(session-router)# sip-interface ORACLE(sip-interface)#
- realm-config:
- Set the announcement-on-error parameter to enabled:
- realm-config:
ORACLE(realm-config)# announcement-on-error enabled - sip-interface:
ORACLE(sip-interface)# announcement-on-error enabled
- realm-config:
- Save and activate your configuration.