<div dir="ltr">
<div>Hello,<br><br>I am trying to set hold music per channel but cannot override the default that is set in vars.xml.<br><br></div><div>I am setting the default hold_music variable in vars.xml, then in a dialplan I am overriding like so:<br><br> <extension name="prefs_2007" continue="true"><br> <condition field="${sip_to_uri}" expression="<a href="mailto:2007@pbaines.com" target="_blank">2007@pbaines.com</a>"><br> <action application="log" data="WARNING I have matched preferences for user [<a href="mailto:2007@pbaines.com" target="_blank">2007@pbaines.com</a>]"/><br> <action application="set" data="hold_music=/var/lib/<wbr>mymusic.wav"/><br>
<action application="export" data="hold_music=/var/lib/<wbr>mymusic.wav"/>
<br> <action application="bridge_export" data="hold_music=/var/lib/<wbr>mymusic.wav"/><br> </condition><br> </extension><br></div><div><br></div><div>I can see it hitting the logline in fs_cli, I am them putting it on hold like so:<br></div><div><br><extension name="soft_hold"><br> <condition field="destination_number" expression="^soft_hold$"><br> <action application="log" data="WARNING putting on hold with ${hold_music}" /><br> <action application="set" data="hold_music=${hold_music}<wbr>" /><br> <action application="export" data="hold_music=${hold_music}<wbr>" /><br> <action application="soft_hold" data="4"/><br> </condition><br></extension><br><br></div><div>The music from vars.xml is played, even though the log line above tells me that ${hold_music} is set to my custom wav.<br></div><div><br>I have also tried the following which also plays the default music on hold:<br><br><action application="soft_hold" data="4 silence ${hold_music}"/>
<br><br></div><div>Should I be able to overwrite the hold_music variable ?<br></div><div><br></div><div>Regards,<br></div><div>Peter<br><br></div>
<br></div>