[Asterisk-code-review] say.c: Fix French time playback. (asterisk[master])

N A asteriskteam at digium.com
Thu Apr 6 13:10:43 CDT 2023


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/20035 )


Change subject: say.c: Fix French time playback.
......................................................................

say.c: Fix French time playback.

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

ASTERISK-30488 #close

Change-Id: I294a72f98ce5fa4d27c8f0b15bc9b23bf09e9e72
---
M main/say.c
1 file changed, 25 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/20035/1

diff --git a/main/say.c b/main/say.c
index 14e43df..5b07c25 100644
--- a/main/say.c
+++ b/main/say.c
@@ -7341,9 +7341,13 @@
 	res = ast_say_number(chan, tm.tm_hour, ints, lang, "f");
 	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;
 }

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/20035
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I294a72f98ce5fa4d27c8f0b15bc9b23bf09e9e72
Gerrit-Change-Number: 20035
Gerrit-PatchSet: 1
Gerrit-Owner: N A <asterisk at phreaknet.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230406/399b726d/attachment.html>


More information about the asterisk-code-review mailing list