Use enabled for extensions and domain_enabled for domains
This commit is contained in:
+3
-1
@@ -102,7 +102,9 @@
|
|||||||
--add the domains
|
--add the domains
|
||||||
if (row.access_control_name == 'providers' or row.access_control_name == 'domains') then
|
if (row.access_control_name == 'providers' or row.access_control_name == 'domains') then
|
||||||
sql = "select domain_name, domain_description from v_domains ";
|
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 = {}
|
local params = {}
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
freeswitch.consoleLog("notice", "[xml_handler] SQL: " .. sql .. ";\n");
|
freeswitch.consoleLog("notice", "[xml_handler] SQL: " .. sql .. ";\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user