From 974cebd3894c1b35d79d420603b6589fe37e71b5 Mon Sep 17 00:00:00 2001 From: Michael MCGuinness Date: Mon, 7 Apr 2014 16:21:22 -0400 Subject: [PATCH] SIP-686 changed mod_say (en) to speak full dates when asked to speak a date in the future (rather than only weekday and time). --- src/mod/say/mod_say_en/mod_say_en.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mod/say/mod_say_en/mod_say_en.c b/src/mod/say/mod_say_en/mod_say_en.c index 6635de7491..255b663ae9 100644 --- a/src/mod/say/mod_say_en/mod_say_en.c +++ b/src/mod/say/mod_say_en/mod_say_en.c @@ -306,6 +306,15 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw break; case SST_SHORT_DATE_TIME: say_time = 1; + //Time is in the future + if ((tm.tm_year > tm_now.tm_year) || + (tm.tm_year == tm_now.tm_year && tm.tm_mon > tm_now.tm_mon) || + (tm.tm_year == tm_now.tm_year && tm.tm_mon == tm_now.tm_mon && tm.tm_mday > tm_now.tm_mday)) + { + say_date = 1; + break; + } + //Time is today or earlier if (tm.tm_year != tm_now.tm_year) { say_date = 1; break;