提交 a287409c authored 作者: Anthony Minessale's avatar Anthony Minessale

add outcall support to nonexistant conferences (needs testing)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4436 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9ca0aee9
...@@ -4072,7 +4072,18 @@ static void conference_function(switch_core_session_t *session, char *data) ...@@ -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) { 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); switch_core_session_reset(session);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论