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
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> 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 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
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
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
------------------------------------------------------------------------
_________________________________________________________________________ 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
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<mailto: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> <mailto: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> <mailto: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> <mailto: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<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<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 -- Gruß, Roland
2012/4/10 Roland Hänel <roland@haenel.me>
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
Roland, Nice detective work! It turns out that my channel variable lister script missed this one. I will revisit it and try again. In the meantime, thanks for digging this up. -MC
How do i use this with fs_cli and there conference command? im trying to use this for dynamic background music and perpetual-sound: if (zstr(conference->perpetual_sound)) { conference->perpetual_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_perpetual_sound")); } mercutioviz wrote
2012/4/10 Roland Hänel <
roland@
>
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
Roland, Nice detective work! It turns out that my channel variable lister script missed this one. I will revisit it and try again. In the meantime, thanks for digging this up.
-MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:
consulting@
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@.freeswitch
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from: http://freeswitch-users.2379917.n2.nabble.com/
participants (5)
-
Lappe, Adam
-
Michael Collins
-
momosxp
-
Roland Hänel
-
Tim St. Pierre