mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 11:13:50 +00:00
Fix a problem where the inbound context has public in the name with public@ as a prefix and .public as a suffix.
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
|
||||
--get the dialplan and related details
|
||||
sql = "select * from v_dialplans as d, v_dialplan_details as s ";
|
||||
if (call_context == "public") then
|
||||
if (call_context == "public" or string.sub(call_context, 0, 7) == "public@" or string.sub(call_context, -7) == ".public") then
|
||||
sql = sql .. "where d.dialplan_context = '" .. call_context .. "' ";
|
||||
else
|
||||
sql = sql .. "where (d.dialplan_context = '" .. call_context .. "' or d.dialplan_context = '${domain_name}') ";
|
||||
|
||||
Reference in New Issue
Block a user