ok let me try this again.....<div><br></div><div>In your autoload_configs/conference.<div>conf.xml<br><br><param name="moh-sound" value="local_stream://${hold_music}"/><br><br></div><div>That Variable is NOT expanded at call time it is only expanded at mod_conference configure time (i.e.: when mod_conference is loaded) this is outside of the context of the dial plan completely...</div>
<div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 11:41 AM, Anita Hall <span dir="ltr"><<a href="mailto:anita.hall@simmortel.com">anita.hall@simmortel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" target="_blank">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> <action application="set" data="hold_music=$1" /><br><br>In my autoload_configs/conference.<div>conf.xml<br><br><param name="moh-sound" value="local_stream://${hold_music}"/><br>
<br></div><br>I am missing something here, or this could be a bug?<br><br clear="all">regards,<br>Anita<div class="HOEnZb"><div class="h5"><br><br>
<br><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 9:01 PM, Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
you can'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>On Wed, Feb 15, 2012 at 9:18 AM, Anita Hall <span dir="ltr"><<a href="mailto:anita.hall@simmortel.com" target="_blank">anita.hall@simmortel.com</a>></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>
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> <extension name="conference_incoming"><br>
<condition field="destination_number" expression="^(.*)$"><br> <action application="set" data="knowlus_hold_music=$1" /><br> <action application="conference" data="3001@default"/><br>
<action application="hangup" /><br> </condition><br> </extension><br><br>In my autoload_configs/conference.conf.xml<br><br><param name="moh-sound" value="local_stream://${knowlus_hold_music}"/><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 'default'<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" 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>
</div></div><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></div>