From: Brian West Date: Sat, 27 Dec 2008 17:38:21 +0000 (+0000) Subject: can't break backwards compatibility X-Git-Tag: v1.0.2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dba461a6453030a151b2b95d9553257f78ba76d;p=thirdparty%2Ffreeswitch.git can't break backwards compatibility git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10971 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 809d6606b0..a39e4796c7 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1184,7 +1184,18 @@ static void parse_domain_tag(sofia_profile_t *profile, switch_xml_t x_domain_tag 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 tags and users are now inside a 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) {