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:
parent
dc2a637c54
commit
03f5396e56
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue