Yes Ken, I tried setting up different profiles and it has worked but ideally this should work http://wiki.freeswitch.org/wiki/Channel_Variables#hold_music 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. 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}] In my dialplan/default.xml <action application="set" data="hold_music=$1" /> In my autoload_configs/conference. conf.xml <param name="moh-sound" value="local_stream://${hold_music}"/> I am missing something here, or this could be a bug? regards, Anita On Wed, Feb 15, 2012 at 9:01 PM, Ken Rice <krice@freeswitch.org> wrote:
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
On Wed, Feb 15, 2012 at 9:18 AM, Anita Hall <anita.hall@simmortel.com>wrote:
Hi
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
In my dialplan/default.xml
<extension name="conference_incoming"> <condition field="destination_number" expression="^(.*)$"> <action application="set" data="knowlus_hold_music=$1" /> <action application="conference" data="3001@default"/> <action application="hangup" /> </condition> </extension>
In my autoload_configs/conference.conf.xml
<param name="moh-sound" value="local_stream://${knowlus_hold_music}"/>
However, it does not work. It is not able to expand the variable ${knowlus_hold_music}
In the log 2012-02-15 19:55:31.195264 [WARNING] mod_local_stream.c:393 Unknown source ${knowlus_hold_music}, trying 'default'
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 ?
Thanks.
regards, Anita
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org