Update dialplan.lua

This commit is contained in:
FusionPBX 2018-08-03 11:21:16 -06:00 committed by GitHub
parent 6d82e28c85
commit c43d682f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@
end
else
sql = "select dialplan_xml from v_dialplans as p ";
if (context_name == "public") then
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}') ";