From: Brian West Date: Wed, 15 Apr 2009 19:36:33 +0000 (+0000) Subject: setting the moh_sound from a variable X-Git-Tag: v1.0.4~1150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9d784254f313c77cfefaa7ec28ac3808f6a5a68;p=thirdparty%2Ffreeswitch.git setting the moh_sound from a variable git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13042 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 61bd810f3d..a4b2399ae7 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4746,6 +4746,11 @@ SWITCH_STANDARD_APP(conference_function) switch_channel_set_variable(channel, "conference_name", conference->name); + /* Set MOH from variable if not set */ + if(switch_strlen_zero(conference->moh_sound)) { + conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_moh_sound")); + } + /* Set the minimum number of members (once you go above it you cannot go below it) */ conference->min = 1;