From 7b052ec965f68cb8d43a91c40e5ef8be8eaa2a9b Mon Sep 17 00:00:00 2001 From: Nico Kooijman <nk@voclarion.nl> Date: Sun, 28 Feb 2021 10:24:29 +0100 Subject: [PATCH] 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 --- main/say.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/say.c b/main/say.c index fcab7fd0ee..0a37091ddb 100644 --- a/main/say.c +++ b/main/say.c @@ -5923,9 +5923,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 { -- GitLab