I found this in mod_conference.c:<div><br></div><div><div><font face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>/* Set MOH from variable if not set */</font></div><div><font face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>if (zstr(conference-&gt;moh_sound)) {</font></div>
<div><font face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">                </span>conference-&gt;moh_sound = switch_core_strdup(conference-&gt;pool, switch_channel_get_variable(channel, &quot;<b>conference_moh_sound</b>&quot;));</font></div>
<div><font face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>}</font></div><div><br></div><div>This evaluate channel variable conference_moh_sound only if the &quot;conference&quot; command creates a new conference. Give it a try. ;-)</div>
<div><br></div><div>Greetings,</div><div>Roland</div><div><br></div><br><div class="gmail_quote">2012/4/6 Tim St. Pierre <span dir="ltr">&lt;<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">xml_curl is worth the effort, as it lets you dynamically set anything in<br>
a conference profile - from sample rate, to default energy levels.  If<br>
you are using a database already, it&#39;s not a complicated script to<br>
write, and it lets you do all of that on the fly.<br>
<br>
-Tim<br>
<div class="im"><br>
Michael Collins wrote:<br>
&gt; I have not seen a way to do this dynamically other than to use<br>
&gt; xml_curl and serve up a conf profile with a custom moh-sound param.<br>
&gt; -MC<br>
&gt;<br>
&gt; On Thu, Apr 5, 2012 at 6:55 AM, Lappe, Adam &lt;<a href="mailto:Adam.Lappe@qsc.de">Adam.Lappe@qsc.de</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:Adam.Lappe@qsc.de">Adam.Lappe@qsc.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi all,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     i am trying to dynamically set the mod-sound variable in<br>
&gt;     mod_conference, so I can play different music on hold<br>
&gt;<br>
&gt;     to my conference rooms without having to create multiple profiles.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Is there a way to set my moh-sound path while I create the conference?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Or can I change the moh-sound file via the event socket in a<br>
&gt;     existing conference?<br>
&gt;<br>
&gt;     I think this would also lead to success.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Thanks in advance,<br>
&gt;<br>
&gt;     Adam<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
</div>&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;     <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;     <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Gruß,<div>Roland</div><div><br></div><br>
</div>