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

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6567 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9414f2da
...@@ -183,6 +183,19 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name) ...@@ -183,6 +183,19 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name)
box = switch_xml_attr_soft(x_user, "mailbox"); box = switch_xml_attr_soft(x_user, "mailbox");
for (x_param = switch_xml_child(x_domain, "param"); x_param; x_param = x_param->next) {
const char *var = switch_xml_attr_soft(x_param, "name");
const char *val = switch_xml_attr_soft(x_param, "value");
if (!strcasecmp(var, "password")) {
mypass1 = val;
} else if (!strcasecmp(var, "vm-password")) {
mypass2 = val;
} else if (!strncasecmp(var, "http-", 5)) {
ResponseAddField(r, (char *)var, (char *)val);
}
}
if (!(x_params = switch_xml_child(x_user, "params"))) { if (!(x_params = switch_xml_child(x_user, "params"))) {
goto authed; goto authed;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论