diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-12-08 05:24:28 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-12-08 05:24:28 +0000 |
commit | 98ea22e695f8d8d766cadd24dc1f5d1b78b3a81c (patch) | |
tree | 6f6291798511262203cc23ad63bf31ef395f2b33 /say.c | |
parent | 791ed84823032b48b5181e1fcec441d8d3c61bd3 (diff) |
Fix hours 21-23 (bug #592)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1838 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-x | say.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -378,8 +378,15 @@ int ast_say_date_with_format(struct ast_channel *chan, time_t time, char *ints, } if (!res) { if (tm.tm_hour != 0) { - snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/digits/%d", tm.tm_hour); - res = wait_file(chan,ints,nextmsg,lang); + int remainder = tm.tm_hour; + if (tm.tm_hour > 20) { + res = wait_file(chan,ints,AST_SOUNDS "/digits/20",lang); + remainder -= 20; + } + if (!res) { + snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/digits/%d", remainder); + res = wait_file(chan,ints,nextmsg,lang); + } } } break; |