Update dialplan.lua

This commit is contained in:
FusionPBX 2020-08-27 10:19:44 -06:00 committed by GitHub
parent d95052ffef
commit cb2758193f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,15 @@
call_context = "public";
end
--get the dialplan method
sql = "select default_setting_value from v_default_settings "
sql = sql .. "where default_setting_category = 'destinations' ";
sql = sql .. "and default_setting_subcategory = 'dialplan_method' ";
local row = dbh:first_row(sql, nil);
if (row) then
dialplan_method = row.default_setting_value;
end
--set the defaults
if (dialplan_method == nil or dialplan_method == '') then
dialplan_method = "multiple";