[Freeswitch-svn] [commit] r4436 - freeswitch/trunk/src/mod/applications/mod_conference
Freeswitch SVN
anthm at freeswitch.org
Fri Mar 2 20:18:51 EST 2007
Author: anthm
Date: Fri Mar 2 20:18:51 2007
New Revision: 4436
Modified:
freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
Log:
add outcall support to nonexistant conferences (needs testing)
Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Fri Mar 2 20:18:51 2007
@@ -4072,7 +4072,18 @@
}
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);
More information about the Freeswitch-svn
mailing list