mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 04:01:55 +00:00
FS-10784: [freeswitch-core] Make Users lists compatible with all forms of xml #resolve
This commit is contained in:
parent
8f1b7e066e
commit
1064bb043c
@ -1853,6 +1853,12 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user_in_domain(const char *use
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ((users = switch_xml_child(domain, "users"))) {
|
||||||
|
status = find_user_in_tag(users, NULL, user_name, "id", NULL, user);
|
||||||
|
} else {
|
||||||
|
status = find_user_in_tag(domain, NULL, user_name, "id", NULL, user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@ -2145,8 +2151,12 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status != SWITCH_STATUS_SUCCESS) {
|
if (status != SWITCH_STATUS_SUCCESS) {
|
||||||
|
if ((users = switch_xml_child(*domain, "users"))) {
|
||||||
|
status = find_user_in_tag(users, ip, user_name, key, params, user);
|
||||||
|
} else {
|
||||||
status = find_user_in_tag(*domain, ip, user_name, key, params, user);
|
status = find_user_in_tag(*domain, ip, user_name, key, params, user);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user