Exactly. I screwed up, my apologies :)
Default in vars.xml is this – som you must have changed this. FS will append the correct sampling for you.
<X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
/Peter
Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Anton Kvashenkin
Skickat: den 12 april 2012 10:11
Till: FreeSWITCH Users Help
Ämne: [Freeswitch-users] [Default Vanilla Configuration] Conference.conf.xml and $${hold_music}
Today while testing some default conference features ( thus using context "default" and all vanilla configs) i've discovered that:
<extension name="wb_conferences">
<condition field="destination_number" expression="^(31\d{2})$">
<action application="answer"/>
<action application="conference" data="$1-${domain_name}@wideband"/>
</condition>
</extension>
In the profile "wideband" at conference.conf.xml <param name="moh-sound" contains value="$${hold_music}" but this global channel variable is defiened at vars.xml and is local_stream://moh/8000
<X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh/8000"/>
So when i entered into wideband or uwb or even cdquality (it doesn't matter because in each profile there is param-name "moh-sound" contains $${hold_music}) conference i'am will be listening moh/8000.
To listen moh/16000, moh/32000, moh/48000 i should manually adjust corresponding music streaming quality, i.e for example for wb-conference
<param name="moh-sound" value="local_stream://moh/16000"/>
But there is another issue :) If do not install {hd,uhd,cd}-moh (assuming that moh/8000 i do install) therefore my $${sounds_dir} will be containing only 8000 stuff and when i will be enter one of hd/cd quality conferences i would get this error
mod_local_stream.c:393 Unknown source moh/32000, trying 'default'
and thus listening default moh ($${sounds_dir}/music/8000).
What would be better: to get this error or manually additing each profile at conference.conf.xml for listen hold-music @ HD-quality, there is the question :)
I REPEAT I'm talking about default configuratin (i.e. vanilla) not production cases :)
!DSPAM:4f868d9b32761309479703!
_________________________________________________________________________
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