mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 07:14:14 +00:00
FS-5621
This commit is contained in:
1 parent
5660f90509
commit
f08c3309f6
2 files changed
+14
-3
No files matched your search
@@ -1916,6 +1916,7 @@ static void do_merge(switch_xml_t in, switch_xml_t src, const char *container, c
|
||||
|
||||
SWITCH_DECLARE(void) switch_xml_merge_user(switch_xml_t user, switch_xml_t domain, switch_xml_t group)
|
||||
{
|
||||
const char *domain_name = switch_xml_attr(domain, "name");
|
||||
|
||||
do_merge(user, group, "params", "param");
|
||||
do_merge(user, group, "variables", "variable");
|
||||
@@ -1923,6 +1924,10 @@ SWITCH_DECLARE(void) switch_xml_merge_user(switch_xml_t user, switch_xml_t domai
|
||||
do_merge(user, domain, "params", "param");
|
||||
do_merge(user, domain, "variables", "variable");
|
||||
do_merge(user, domain, "profile-variables", "variable");
|
||||
|
||||
if (!zstr(domain_name)) {
|
||||
switch_xml_set_attr_d(user, "domain-name", domain_name);
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(uint32_t) switch_xml_clear_user_cache(const char *key, const char *user_name, const char *domain_name)
|
||||
|
||||
Reference in new issue
Block a user