mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
[core, mod_commands, mod_verto] small tweaks to cache stuff to allow clear from verto and allow no domain to imply the default domain
This commit is contained in:
committed by
Andrey Volk
parent
f540bbbbe3
commit
39b3caacb5
@@ -2010,6 +2010,10 @@ SWITCH_DECLARE(uint32_t) switch_xml_clear_user_cache(const char *key, const char
|
||||
|
||||
switch_mutex_lock(CACHE_MUTEX);
|
||||
|
||||
if (key && user_name && !domain_name) {
|
||||
domain_name = switch_core_get_variable("domain");
|
||||
}
|
||||
|
||||
if (key && user_name && domain_name) {
|
||||
switch_snprintf(mega_key, sizeof(mega_key), "%s%s%s", key, user_name, domain_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user