Yes Ken, I tried setting up different profiles and it has worked but ideally this should work<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#hold_music">http://wiki.freeswitch.org/wiki/Channel_Variables#hold_music</a><br>
<br>Even when I set hold_music (which is a pre-defined channel variable) in the dialplan, it does not expand and gives the following error. <br><br>2012-02-15 22:28:19.775258 [ERR] switch_core_file.c:112 Unknown file Format [/usr/local/freeswitch/sounds/en/us/callie/${hold_music}]<br>
<br>In my dialplan/default.xml<br><br>                &lt;action application=&quot;set&quot; data=&quot;hold_music=$1&quot; /&gt;<br><br>In my autoload_configs/conference.<div class="h5">conf.xml<br><br>&lt;param name=&quot;moh-sound&quot; value=&quot;local_stream://${hold_music}&quot;/&gt;<br>


<br></div><br>I am missing something here, or this could be a bug?<br><br clear="all">regards,<br>Anita<br><br>
<br><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 9:01 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
you can&#39;t put dial plan variables in the conference config like that and expect them to work... thats load time setup on the conferences you should probably set up separate profiles for them... see mod_conference page not he wiki<br>

<br><div class="gmail_quote"><div><div class="h5">On Wed, Feb 15, 2012 at 9:18 AM, Anita Hall <span dir="ltr">&lt;<a href="mailto:anita.hall@simmortel.com" target="_blank">anita.hall@simmortel.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi<br><br>I am trying to play different moh sound for each conference call by passing a variable to moh-sound from the dialplan to autoload_configs/conference.conf.xml<br><br>In my dialplan/default.xml<br><br>    &lt;extension name=&quot;conference_incoming&quot;&gt;<br>


        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;<br>                &lt;action application=&quot;set&quot; data=&quot;knowlus_hold_music=$1&quot; /&gt;<br>                &lt;action application=&quot;conference&quot; data=&quot;3001@default&quot;/&gt;<br>


                &lt;action application=&quot;hangup&quot; /&gt;<br>        &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>In my autoload_configs/conference.conf.xml<br><br>&lt;param name=&quot;moh-sound&quot; value=&quot;local_stream://${knowlus_hold_music}&quot;/&gt;<br>


<br>However, it does not work. It is not able to expand the variable ${knowlus_hold_music}<br><br>In the log<br>2012-02-15 19:55:31.195264 [WARNING] mod_local_stream.c:393 Unknown source ${knowlus_hold_music}, trying &#39;default&#39;<br>


<br>Is it even possible to pass a channel variable to a config file ? Or is there another way to achieve what I am trying to do ?<br><br>Thanks. <br><br clear="all">regards,<br>Anita<br><br>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></blockquote></div><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>
<br></blockquote></div><br>