Skip to content

Commit ffb90c4

Browse files
authored
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
1 parent 9a99924 commit ffb90c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

main/say.c

+8-3
Original file line numberDiff line numberDiff line change
@@ -7339,11 +7339,16 @@ int ast_say_time_fr(struct ast_channel *chan, time_t t, const char *ints, const
73397339
ast_localtime(&when, &tm, NULL);
73407340

73417341
res = ast_say_number(chan, tm.tm_hour, ints, lang, "f");
7342-
if (!res)
7342+
if (!res) {
73437343
res = ast_streamfile(chan, "digits/oclock", lang);
7344+
}
7345+
if (!res) {
7346+
res = ast_waitstream(chan, ints);
7347+
}
73447348
if (tm.tm_min) {
7345-
if (!res)
7346-
res = ast_say_number(chan, tm.tm_min, ints, lang, (char *) NULL);
7349+
if (!res) {
7350+
res = ast_say_number(chan, tm.tm_min, ints, lang, "f");
7351+
}
73477352
}
73487353
return res;
73497354
}

0 commit comments

Comments
 (0)