mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
support military-style time announcing ('hundred' instead of 'o-clock') (bug #4605)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
say.c
7
say.c
@@ -2815,9 +2815,14 @@ int ast_say_date_with_format_en(struct ast_channel *chan, time_t time, const cha
|
||||
}
|
||||
break;
|
||||
case 'M':
|
||||
case 'N':
|
||||
/* Minute */
|
||||
if (tm.tm_min == 0) {
|
||||
res = wait_file(chan,ints, "digits/oclock",lang);
|
||||
if (format[offset] == 'M') {
|
||||
res = wait_file(chan, ints, "digits/oclock", lang);
|
||||
} else {
|
||||
res = wait_file(chan, ints, "digits/hundred", lang);
|
||||
}
|
||||
} else if (tm.tm_min < 10) {
|
||||
res = wait_file(chan,ints, "digits/oh",lang);
|
||||
if (!res) {
|
||||
|
Reference in New Issue
Block a user