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

add inbound/outbound separation to pcre

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1042 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 3208bbfb
......@@ -56,6 +56,7 @@ static switch_caller_extension *dialplan_hunt(switch_core_session *session)
pcre *re = NULL;
int match_count = 0;
int ovector[30];
int skip = 0;
channel = switch_core_session_get_channel(session);
caller_profile = switch_channel_get_caller_profile(channel);
......@@ -75,6 +76,17 @@ static switch_caller_extension *dialplan_hunt(switch_core_session *session)
exten_name = cfg.category;
cleanre();
match_count = 0;
skip = 0;
if (!strcasecmp(exten_name, "outbound") && !switch_channel_test_flag(channel, CF_OUTBOUND)) {
skip = 1;
} else if (!strcasecmp(exten_name, "inbound") && switch_channel_test_flag(channel, CF_OUTBOUND)) {
skip = 1;
}
}
if (skip) {
continue;
}
if (!strcasecmp(var, "regex")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论