aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-08 16:34:10 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-08 16:34:10 +0000
commit4d8fb679c95a3f7779467c53c4b8a2cfd70f9366 (patch)
tree4e8323c7ecd8139b41c356afae626030f00138e3 /say.c
parent16fc398fbb5bca23a101e1a76fd7cd02b0e610a6 (diff)
Fix French time (bug #4197)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5598 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/say.c b/say.c
index 59d4344fe..40c17659b 100755
--- a/say.c
+++ b/say.c
@@ -3743,6 +3743,8 @@ int ast_say_date_with_format_fr(struct ast_channel *chan, time_t time, const cha
else
snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_hour);
res = wait_file(chan,ints,nextmsg,lang);
+ if (!res)
+ res = wait_file(chan,ints, "digits/oclock",lang);
break;
case 'H':
case 'k':
@@ -3753,13 +3755,15 @@ int ast_say_date_with_format_fr(struct ast_channel *chan, time_t time, const cha
res = wait_file(chan,ints, "digits/oclock",lang);
}
}
+ if (!res)
+ res = wait_file(chan,ints, "digits/oclock",lang);
break;
case 'M':
/* Minute */
- res = wait_file(chan,ints, "digits/oclock",lang);
- if (res) break;
- if (tm.tm_min == 0) break;
- res = ast_say_number(chan, tm.tm_hour, ints, lang, (char * ) NULL);
+ if (tm.tm_min == 0) {
+ break;
+ }
+ res = ast_say_number(chan, tm.tm_min, ints, lang, (char * ) NULL);
break;
case 'P':
case 'p':