Use enabled for extensions and domain_enabled for domains

This commit is contained in:
FusionPBX 2023-04-21 18:07:45 -06:00 committed by GitHub
parent 18430f2abe
commit 600d5db942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@
--add the domains
if (row.access_control_name == 'providers' or row.access_control_name == 'domains') then
sql = "select domain_name, domain_description from v_domains ";
sql = sql .. "where domain_uuid in (select distinct(domain_uuid) from v_extensions where domain_enabled = 'true') ";
sql = sql .. "where domain_uuid in (select distinct(domain_uuid) ";
sql = sql .. "from v_extensions where enabled = 'true') ";
sql = sql .. "and domain_enabled = 'true' ";
local params = {}
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[xml_handler] SQL: " .. sql .. ";\n");