I found this in mod_conference.c:<div><br></div><div><div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>/* Set MOH from variable if not set */</font></div><div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>if (zstr(conference->moh_sound)) {</font></div>
<div><font face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">                </span>conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "<b>conference_moh_sound</b>"));</font></div>
<div><font face="'courier new', 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 "conference" 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"><<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>></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'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>
> I have not seen a way to do this dynamically other than to use<br>
> xml_curl and serve up a conf profile with a custom moh-sound param.<br>
> -MC<br>
><br>
> On Thu, Apr 5, 2012 at 6:55 AM, Lappe, Adam <<a href="mailto:Adam.Lappe@qsc.de">Adam.Lappe@qsc.de</a><br>
</div><div class="im">> <mailto:<a href="mailto:Adam.Lappe@qsc.de">Adam.Lappe@qsc.de</a>>> wrote:<br>
><br>
> Hi all,<br>
><br>
><br>
><br>
> i am trying to dynamically set the mod-sound variable in<br>
> mod_conference, so I can play different music on hold<br>
><br>
> to my conference rooms without having to create multiple profiles.<br>
><br>
><br>
><br>
> Is there a way to set my moh-sound path while I create the conference?<br>
><br>
><br>
><br>
> Or can I change the moh-sound file via the event socket in a<br>
> existing conference?<br>
><br>
> I think this would also lead to success.<br>
><br>
><br>
><br>
> Thanks in advance,<br>
><br>
> Adam<br>
><br>
><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
</div>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
<div class="im">> <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>
</div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div class="im">> <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>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5">><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>
><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>