mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add dialplan context global.
This commit is contained in:
@@ -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' ";
|
||||
|
||||
Reference in New Issue
Block a user