say.c: Fix French time playback. (#42)

ast_waitstream was not called after ast_streamfile,
resulting in "o'clock" being skipped in French.

Additionally, the minute announcements should be
feminine.

Reported-by: Danny Lloyd

Resolves: #41
ASTERISK-30488
This commit is contained in:
InterLinked1 2023-05-02 09:09:42 -05:00 committed by GitHub
parent 9a999242b2
commit ffb90c4549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -7339,11 +7339,16 @@ int ast_say_time_fr(struct ast_channel *chan, time_t t, const char *ints, const
ast_localtime(&when, &tm, NULL);
res = ast_say_number(chan, tm.tm_hour, ints, lang, "f");
if (!res)
if (!res) {
res = ast_streamfile(chan, "digits/oclock", lang);
}
if (!res) {
res = ast_waitstream(chan, ints);
}
if (tm.tm_min) {
if (!res)
res = ast_say_number(chan, tm.tm_min, ints, lang, (char *) NULL);
if (!res) {
res = ast_say_number(chan, tm.tm_min, ints, lang, "f");
}
}
return res;
}