setting the moh_sound from a variable

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13042 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-04-15 19:36:33 +00:00
parent 934028f1e2
commit e9d784254f
1 changed files with 5 additions and 0 deletions

View 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;