Variable hold music
From FreeSWITCH Wiki
hold_music
Per-channel hold music. Supports all audio formats and audio streams. The hold_music variable can also be set globally at vars.xml.
Usage:
<action application="set" data="hold_music=/sounds/holdmusic.wav" />
or,
<action application="set" data="hold_music=silence" />
For multi-tenant environment, if you want to have a separate MOH for the phone with hold button (like Polycom) that utilizes RE-INVITE with no media ip addr (0.0.0.0) for hold, you can override the hold-music values in the sip profile parameter similar to the following example:
<action application="bridge_export" data="hold_music=$${sounds_dir}/music/company-a.mp3"/>
See also:
Implemented By:
| Module Name | Source File | Last Revised |
| mod_fifo | mod_fifo.c | 8065 |
| mod_sofia | sofia_glue.c | 5449 |
| core | switch_ivr.c | 8232 |
| core | switch_ivr_play_say.c | 8065 |

