This pull requests fixes XML Handler support for 'date-time' time codition. With this, date-time gets rendered as:

<condition date-time="2015-12-15 15:00~2015-12-16 15:00">

 Without this, the time condition WOULD get redered as:
 <condition field="date-time" expression="2015-12-15 15:00~2015-12-16 15:00">

 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.
This commit is contained in:
Karolis Pabijanskas 2015-12-15 16:31:27 +00:00
parent dc2a637c54
commit 03f5396e56
1 changed files with 2 additions and 0 deletions

View File

@ -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