[Freeswitch-users] different moh in conference for each call?

Anita Hall anita.hall at simmortel.com
Wed Feb 15 18:18:23 MSK 2012


I am trying to play different moh sound for each conference call by passing
a variable to moh-sound from the dialplan to

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 at default"/>
                <action application="hangup" />

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

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 ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120215/377722a3/attachment.html 

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