提交 74399da1 authored 作者: Anthony Minessale's avatar Anthony Minessale

fail call on extensions with nested conditions

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9312 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c052a998
......@@ -64,6 +64,12 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
switch_safe_free(field_expanded);
switch_safe_free(expression_expanded);
if (switch_xml_child(xcond, "condition")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Nested conditions are not allowed!\n");
proceed = 1;
goto done;
}
field = (char *) switch_xml_attr(xcond, "field");
if ((xexpression = switch_xml_child(xcond, "expression"))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论