From cb2758193f206c160b81f3e830929de07ebe7f58 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 27 Aug 2020 10:19:44 -0600 Subject: [PATCH] Update dialplan.lua --- .../xml_handler/resources/scripts/dialplan/dialplan.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index 83ca9e2906..e7bf638ba7 100644 --- a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -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";