This works perfect.

 

Thank you.

 

Regards,

Adam

 


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Roland Hänel
Gesendet: Dienstag, 10. April 2012 10:23
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] dynamic music on hold for mod_conference

 

I found this in mod_conference.c:

 

            /* Set MOH from variable if not set */

            if (zstr(conference->moh_sound)) {

                        conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_moh_sound"));

            }

 

This evaluate channel variable conference_moh_sound only if the "conference" command creates a new conference. Give it a try. ;-)

 

Greetings,

Roland

 

 

2012/4/6 Tim St. Pierre <fs-list@communicatefreely.net>

xml_curl is worth the effort, as it lets you dynamically set anything in
a conference profile - from sample rate, to default energy levels.  If
you are using a database already, it's not a complicated script to
write, and it lets you do all of that on the fly.

-Tim


Michael Collins wrote:
> I have not seen a way to do this dynamically other than to use
> xml_curl and serve up a conf profile with a custom moh-sound param.
> -MC
>
> On Thu, Apr 5, 2012 at 6:55 AM, Lappe, Adam <Adam.Lappe@qsc.de

> <mailto:Adam.Lappe@qsc.de>> wrote:
>
>     Hi all,
>
>
>
>     i am trying to dynamically set the mod-sound variable in
>     mod_conference, so I can play different music on hold
>
>     to my conference rooms without having to create multiple profiles.
>
>
>
>     Is there a way to set my moh-sound path while I create the conference?
>
>
>
>     Or can I change the moh-sound file via the event socket in a
>     existing conference?
>
>     I think this would also lead to success.
>
>
>
>     Thanks in advance,
>
>     Adam
>
>
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:

>     consulting@freeswitch.org <mailto: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

>     <mailto: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
>
>

> ------------------------------------------------------------------------

>
> _________________________________________________________________________
> 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
>


_________________________________________________________________________
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



 

--
Gruß,

Roland