Add dialplan context global.

This commit is contained in:
FusionPBX
2020-06-21 00:01:28 -06:00
committed by GitHub
parent 6cc4f79f5a
commit 96a261e444

View File

@@ -124,7 +124,7 @@
if (context_name == "public" or string.match(context_name, "@")) then
sql = sql .. "where p.dialplan_context = :call_context ";
else
sql = sql .. "where (p.dialplan_context = :call_context or p.dialplan_context = '${domain_name}') ";
sql = sql .. "where p.dialplan_context in (:call_context, '${domain_name}', 'global') ";
end
sql = sql .. "and (p.hostname = :hostname or p.hostname is null) ";
sql = sql .. "and p.dialplan_enabled = 'true' ";