]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2781
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Oct 2010 01:07:26 +0000 (20:07 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Oct 2010 01:07:26 +0000 (20:07 -0500)
src/mod/applications/mod_conference/mod_conference.c

index fef059cf07c33c63f40dc37bd380f73a9ac2569a..b9127c9f2fac89b3e9c2c7da22c30fb28334c1b0 100644 (file)
@@ -682,7 +682,7 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe
                                conference_stop_file(conference, FILE_STOP_ASYNC);
                        }
 
-                       if (!switch_channel_test_app_flag_key("conf_silent", channel, CONF_SILENT_REQ)) {
+                       if (!switch_channel_test_app_flag_key("conf_silent", channel, CONF_SILENT_REQ) && !zstr(conference->enter_sound)) {
                                conference_play_file(conference, conference->enter_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session),
                                                                         switch_test_flag(conference, CFLAG_WAIT_MOD) ? 0 : 1);
                        }
@@ -2868,6 +2868,10 @@ static switch_status_t conference_play_file(conference_obj_t *conference, char *
 
        switch_assert(conference != NULL);
 
+       if (zstr(file)) {
+               return SWITCH_STATUS_NOTFOUND;
+       }
+
        switch_mutex_lock(conference->mutex);
        switch_mutex_lock(conference->member_mutex);
        count = conference->count;