[Freeswitch-users] [Default Vanilla Configuration] Conference.conf.xml and $${hold_music}

Anton Kvashenkin anton.jugatsu at gmail.com
Thu Apr 12 12:11:28 MSD 2012

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"/>

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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120412/eeef3247/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list