[Freeswitch-users] dynamic music on hold for mod_conference
Roland Hänel
roland at haenel.me
Tue Apr 10 12:22:39 MSD 2012
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 at 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 at qsc.de
> > <mailto:Adam.Lappe at 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 at freeswitch.org <mailto: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
> > <mailto: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
> >
> >
> > ------------------------------------------------------------------------
> >
> > _________________________________________________________________________
> > 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
> >
>
>
> _________________________________________________________________________
> 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
>
--
Gruß,
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120410/8e47775f/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list