diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 02:36:53 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 02:36:53 +0000 |
commit | 1ea58b45179efd0bc21305091327c8e1b0f2a44b (patch) | |
tree | 890e5e39c3bb14d42608cc4e2081e5d6c1d64dc9 /say.c | |
parent | a803ef7af096ff11414a25a1eb6ad64d332b6a10 (diff) |
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
Diffstat (limited to 'say.c')
-rwxr-xr-x | say.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |