aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 02:36:53 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 02:36:53 +0000
commit407f10a2610581dc7ce841a5dc2dd826947b8b97 (patch)
tree890e5e39c3bb14d42608cc4e2081e5d6c1d64dc9 /say.c
parent34f2bb0bb13216e1082db2b2541ef71eae62563f (diff)
support military-style time announcing ('hundred' instead of 'o-clock') (bug #4605)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6098 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/say.c b/say.c
index 80aad6e03..d04b52d57 100755
--- a/say.c
+++ b/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) {