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

Ken Rice krice at freeswitch.org
Wed Feb 15 18:31:18 MSK 2012


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 at 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120215/585cdb6d/attachment.html 


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