]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
setting the moh_sound from a variable
authorBrian West <brian@freeswitch.org>
Wed, 15 Apr 2009 19:36:33 +0000 (19:36 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 15 Apr 2009 19:36:33 +0000 (19:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13042 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index 61bd810f3d94db6b708b4937549893095b27e754..a4b2399ae728e9b9b3bb6b8b737869df0059f027 100644 (file)
@@ -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;