From: Brian West Date: Thu, 24 Sep 2009 21:07:47 +0000 (+0000) Subject: DP-7 X-Git-Tag: v1.0.6~1814 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf05cd639922dcd3ed6ad88235f9b546c108d70;p=thirdparty%2Ffreeswitch.git DP-7 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14968 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index aa862007a1..6efbbbd54e 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -154,7 +154,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * } if (time_match && xweek) { - int test = (int) (tm.tm_yday + 1 / 7); + int test = (int) (tm.tm_yday / 7 + 1); time_match = switch_number_cmp(xweek, test); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG_CLEAN(session), SWITCH_LOG_DEBUG, "Dialplan: week of year[%d] =~ %s (%s)\n", test, xweek, time_match ? "PASS" : "FAIL");