From a287409c7617de7a980540cffde17b4517794a44 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 3 Mar 2007 01:18:51 +0000 Subject: [PATCH] add outcall support to nonexistant conferences (needs testing) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4436 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../applications/mod_conference/mod_conference.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index be115205ad..07166ea4aa 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4072,7 +4072,18 @@ static void conference_function(switch_core_session_t *session, char *data) } if (switch_test_flag(&member, MFLAG_KICKED) && conference->kicked_sound) { - switch_ivr_play_file(session, NULL, conference->kicked_sound, NULL); + char *toplay = NULL; + char *dfile = NULL; + + if (conference->sound_prefix) { + assert((dfile = switch_mprintf("%s/%s", conference->sound_prefix, conference->kicked_sound))); + toplay = dfile; + } else { + toplay = conference->kicked_sound; + } + + switch_ivr_play_file(session, NULL, toplay, NULL); + switch_safe_free(dfile); } switch_core_session_reset(session);