From aac2fb84ad0ba6ce958307bade964372c6b665a2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Oct 2008 19:39:35 +0000 Subject: [PATCH] Avoiding NitPick MODAPP_155 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10015 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index d2e1602c0c..6e418ae11c 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -618,8 +618,8 @@ static switch_status_t conference_add_member(conference_obj_t *conference, confe conference_member_say(member, msg, CONF_DEFAULT_LEADIN); } else if (conference->count == 1 && !conference->perpetual_sound) { if (conference->alone_sound) { - conference_play_file(conference, conference->alone_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session), - 0); + conference_stop_file(conference, FILE_STOP_ASYNC); + conference_play_file(conference, conference->alone_sound, CONF_DEFAULT_LEADIN, switch_core_session_get_channel(member->session), 1); } else { switch_snprintf(msg, sizeof(msg), "You are currently the only person in this conference."); conference_member_say(member, msg, CONF_DEFAULT_LEADIN); @@ -743,7 +743,8 @@ static switch_status_t conference_del_member(conference_obj_t *conference, confe conference_play_file(conference, conference->exit_sound, 0, switch_core_session_get_channel(member->session), 0); } if (conference->count == 1 && conference->alone_sound) { - conference_play_file(conference, conference->alone_sound, 0, switch_core_session_get_channel(member->session), 0); + conference_stop_file(conference, FILE_STOP_ASYNC); + conference_play_file(conference, conference->alone_sound, 0, switch_core_session_get_channel(member->session), 1); } }