[Freeswitch-svn] [commit] r10972 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Sat Dec 27 09:42:43 PST 2008


Author: brian
Date: Sat Dec 27 12:42:42 2008
New Revision: 10972

Log:
on second thought this is much better

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Sat Dec 27 12:42:42 2008
@@ -1185,19 +1185,15 @@
 		}
 	}
 
-	/* 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) {



More information about the Freeswitch-svn mailing list