]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main: With Dutch language year after 2020 is not spoken in say.c
authorNico Kooijman <nk@voclarion.nl>
Sun, 28 Feb 2021 09:24:29 +0000 (10:24 +0100)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 2 Mar 2021 17:19:51 +0000 (11:19 -0600)
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

index fcab7fd0ee6fbf661e03c8fe839832f428893150..0a37091ddb641ebf7edd239712f752a83915882b 100644 (file)
@@ -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 {