提交 816f61af authored 作者: Brian West's avatar Brian West

register gateways from users after group changes.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10970 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5c91e596
......@@ -1186,13 +1186,19 @@ static void parse_domain_tag(sofia_profile_t *profile, switch_xml_t x_domain_tag
}
if (switch_true(parse)) {
switch_xml_t ut, gateways_tag;
for (ut = switch_xml_child(x_domain_tag, "user"); ut; ut = ut->next) {
switch_xml_t gts, gt, uts, ut, gateways_tag;
for (gts = switch_xml_child(x_domain_tag, "groups"); gts; gts = gts->next) {
for (gt = switch_xml_child(gts, "group"); gt; gt = gt->next) {
for (uts = switch_xml_child(gt, "users"); uts; uts = uts->next) {
for (ut = switch_xml_child(uts, "user"); ut; ut = ut->next) {
if (((gateways_tag = switch_xml_child(ut, "gateways")))) {
parse_gateways(profile, gateways_tag);
}
}
}
}
}
}
}
switch_status_t reconfig_sofia(sofia_profile_t *profile)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论