Music on hold can be in WAV or MP3 format. To play an MP3 file you must have mod_shout enabled on the 'Modules' tab. You can adjust the volume of the MP3 audio from the 'Settings' tab. For best performance upload 16 bit, 8/16/32/48 kHz mono WAV files.
When a new music on hold category mod_local_stream will be restarted. If it is busy then it will not restart automatically. A manual restart of the module is required when it is not in use. The module can be restarted from the Menu -> Advanced -> Modules or from the console and fs_cli with following command.
reload mod_local_stream
Each music on hold category is given a name. If the domain is set to global the name will be the name in the example below the protocol that is used is local_stream and the music on hold category is default and domain is set to global.
local_stream://default
It is possible that a domain or tenant can have its own category of music. In this example the name is 'custom' and the domain was assigned automatically to the current domain.
local_stream://domain_name/custom
Navigate to Applications > Music On Hold.
Click the Add button in the top-right corner of the screen.
If you want to upload a file to an existing category, select that category. Otherwise, click the +button to create a new MOH category.
Enter a name for the new category (if creating one).
Leave the dropdown set to \"Default.\"
Select a file to upload.
Click the Upload button. (Large files may take a moment to upload.)
Your new category and file will appear in the list.
SSH into your server and run the following commands:
fs_cli This command opens the FreeSwitch CLI
reload mod_local_stream This command reloads the new category
Press Ctrl+D to exit the CLI.
Type exit to close the SSH session.
Select the extension you want to apply the custom MOH to.
Find the \"Hold Music\" option and select your new custom group.
Click Save to save your changes.
Test your custom MOH by calling the extension and placing it on hold.
You should hear your custom MOH playing.