Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c (14377 => 14378)
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c 2009-07-27 16:25:41 UTC (rev 14377)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c 2009-07-27 16:59:32 UTC (rev 14378)
@@ -74,6 +74,7 @@
const char *xwday = switch_xml_attr(xcond, "wday");
const char *xhour = switch_xml_attr(xcond, "hour");
const char *xminute = switch_xml_attr(xcond, "minute");
+ const char *xminday = switch_xml_attr(xcond, "minute_of_day");
switch_time_t ts = switch_micro_time_now();
int time_match = -1;
switch_time_exp_t tm;
@@ -120,6 +121,10 @@
if (time_match && xminute) {
time_match = switch_number_cmp(xminute, tm.tm_min + 1);
}
+
+ if (time_match && xminday) {
+ time_match = switch_number_cmp(xminday, (tm.tm_hour * 60) + (tm.tm_min + 1));
+ }
field = (char *) switch_xml_attr(xcond, "field");