From 03f5396e560b1e545a03ad0da890a3226ae6d9eb Mon Sep 17 00:00:00 2001 From: Karolis Pabijanskas Date: Tue, 15 Dec 2015 16:31:27 +0000 Subject: [PATCH] This pull requests fixes XML Handler support for 'date-time' time codition. With this, date-time gets rendered as: Without this, the time condition WOULD get redered as: which is incorrect and would always match false in FreeSWITCH. FreeSWITCH docs for this are here: https://freeswitch.org/confluence/display/FREESWITCH/Time+of+Day+and+Holiday+Routing#TimeofDayandHolidayRouting-Variables All other time condition variables documented seem to be included in FusionPBX'es XML Handler. --- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index 5ccc18f06b..d07f6090f8 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -187,6 +187,8 @@ condition_type = 'time'; elseif (dialplan_detail_type == "week") then condition_type = 'time'; + elseif (dialplan_detail_type == "date-time") then + condition_type = 'time'; else condition_type = 'default'; end