]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-349
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 16 Oct 2009 19:09:11 +0000 (19:09 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 16 Oct 2009 19:09:11 +0000 (19:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15171 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index 8596aa85fb6098348b2de5e0a24b540e534b1e5d..82c29ca5cb0e42ff91af334c08cb2b0dcc232261 100644 (file)
@@ -974,7 +974,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
 
                if (conference->perpetual_sound && !conference->async_fnode) {
                        conference_play_file(conference, conference->perpetual_sound, CONF_DEFAULT_LEADIN, NULL, 1);
-               } else if (conference->moh_sound && conference->count == 1 && !conference->async_fnode) {
+               } else if (conference->moh_sound && (conference->count == 1 || switch_test_flag(conference, CFLAG_WAIT_MOD)) && !conference->async_fnode) {
                        conference_play_file(conference, conference->moh_sound, CONF_DEFAULT_LEADIN, NULL, 1);
                }