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

Peter Olsson peter.olsson at visionutveckling.se
Thu Apr 12 12:24:13 MSD 2012


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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120412/29730766/attachment-0001.html 


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