dname, profile->name);
}
}
-
+
+ /* Backwards Compatibility */
+ if (switch_true(parse)) {
+ switch_xml_t ut, gateways_tag;
+ for (ut = switch_xml_child(x_domain_tag, "user"); ut; ut = ut->next) {
+ if (((gateways_tag = switch_xml_child(ut, "gateways")))) {
+ parse_gateways(profile, gateways_tag);
+ }
+ }
+ }
+
+ /* New Method with <groups> tags and users are now inside a <users> tag */
if (switch_true(parse)) {
switch_xml_t gts, gt, uts, ut, gateways_tag;
for (gts = switch_xml_child(x_domain_tag, "groups"); gts; gts = gts->next) {