arnaudcoquelet / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Time Condition: time-of-day broken, incorrect XML Dial Plan formatting #880

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create Time Condition
2. Set "Time of Day" ranges
3. Call extension, will fail or go to alternate

Problem:
When setting the Time Condition the following is placed into the XML Dial Plan: 
<condition field="time-of-day" expression="07:30-17:30" break="never" >

In order for the condition to work it needs to be formatted as such:
<condition time-of-day="06:00-21:30" break="never" >

It appears as though this is working for other conditions such as wday.

What version of the product are you using? On what operating system?

Release: 7943
Operating System: Ubuntu 14.01

Original issue reported on code.google.com by s...@classroomsanywhere.com on 11 Mar 2015 at 3:56

GoogleCodeExporter commented 9 years ago
Found the solution.

This was caused by a missing case statement in switch.php. I have attached a 
.diff patch that can be used to fix the problem. Once applied it will correctly 
generate the XML to allow the Time Condition to work.

Thanks,
Seth

Original comment by s...@classroomsanywhere.com on 11 Mar 2015 at 5:08

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, Seth.  Patched with r7956.

Original comment by sevenate on 15 Mar 2015 at 1:16