]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
on second thought this is much better
authorBrian West <brian@freeswitch.org>
Sat, 27 Dec 2008 17:42:42 +0000 (17:42 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 27 Dec 2008 17:42:42 +0000 (17:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10972 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index a39e4796c7e8a1876cb681ac4cb0b650d9707e5c..580e92df57eebf54ba8635e833797ab2ad465aea 100644 (file)
@@ -1185,19 +1185,15 @@ static void parse_domain_tag(sofia_profile_t *profile, switch_xml_t x_domain_tag
                }
        }
 
-       /* Backwards Compatibility */
        if (switch_true(parse)) {
-               switch_xml_t ut, gateways_tag;
+               switch_xml_t gts, gt, uts, ut, gateways_tag;
+               /* Backwards Compatibility */
                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;
+               /* New Method with <groups> tags and users are now inside a <users> 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) {