From: Nico Kooijman Date: Sun, 28 Feb 2021 09:24:29 +0000 (+0100) Subject: main: With Dutch language year after 2020 is not spoken in say.c X-Git-Tag: 16.17.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980cc0d36428b3080a06518e0db22cd55636f8b7;p=thirdparty%2Fasterisk.git main: With Dutch language year after 2020 is not spoken in say.c Implemented the english way of saying the year in ast_say_date_with_format_nl. Currently the numbers are spoken correctly until 2020 and stopped working this year. ASTERISK-29297 #close Reported-by: Jacek Konieczny Change-Id: If5918eed5ab05df31df4dd23f08a909a60f6aba4 --- diff --git a/main/say.c b/main/say.c index c376c44c2e..a4c6ffab98 100644 --- a/main/say.c +++ b/main/say.c @@ -5965,9 +5965,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char * } if (tm.tm_year > 100) { if (!res) { - /* This works until the end of 2020 */ - snprintf(nextmsg, sizeof(nextmsg), "digits/%d", tm.tm_year - 100); - res = wait_file(chan, ints, nextmsg, lang); + res = ast_say_number(chan, tm.tm_year - 100, ints, lang, (char *) NULL); } } } else {