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

oh yeah, it can be true too

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15376 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f2dc1551
...@@ -2328,16 +2328,20 @@ SWITCH_STANDARD_APP(audio_bridge_function) ...@@ -2328,16 +2328,20 @@ SWITCH_STANDARD_APP(audio_bridge_function)
} }
if (continue_on_fail) { if (continue_on_fail) {
char *lbuf = switch_core_session_strdup(session, continue_on_fail); if (switch_true(continue_on_fail)) {
char *argv[256] = { 0 }; return;
int argc = switch_separate_string(lbuf, ',', argv, (sizeof(argv) / sizeof(argv[0]))); } else {
int i; char *lbuf = switch_core_session_strdup(session, continue_on_fail);
char *argv[256] = { 0 };
for (i = 0; i < argc; i++) { int argc = switch_separate_string(lbuf, ',', argv, (sizeof(argv) / sizeof(argv[0])));
if (!strcasecmp(argv[i], cause_str) || !strcasecmp(argv[i], cause_num)) { int i;
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
"Continue on fail [%s]: Cause: %s\n", continue_on_fail, cause_str); for (i = 0; i < argc; i++) {
return; if (!strcasecmp(argv[i], cause_str) || !strcasecmp(argv[i], cause_num)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
"Continue on fail [%s]: Cause: %s\n", continue_on_fail, cause_str);
return;
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论