From: Rupa Schomaker Date: Wed, 15 Apr 2009 23:36:34 +0000 (+0000) Subject: set perpetual_sound from channel var X-Git-Tag: v1.0.4~1144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab7c282076e12b0dcea4f5881499c9fe4c57e512;p=thirdparty%2Ffreeswitch.git set perpetual_sound from channel var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13048 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 a4b2399ae7..09d97d8975 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4750,6 +4750,10 @@ SWITCH_STANDARD_APP(conference_function) if(switch_strlen_zero(conference->moh_sound)) { conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_moh_sound")); } + /* Set perpetual-sound from variable if not set */ + if(switch_strlen_zero(conference->perpetual_sound)) { + conference->perpetual_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_perpetual_sound")); + } /* Set the minimum number of members (once you go above it you cannot go below it) */ conference->min = 1;