[Asterisk-cvs] asterisk say.c,1.13,1.14
markster at lists.digium.com
markster at lists.digium.com
Sun Dec 7 23:33:02 CST 2003
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5377
Modified Files:
say.c
Log Message:
Fix hours 21-23 (bug #592)
Index: say.c
===================================================================
RCS file: /usr/cvsroot/asterisk/say.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- say.c 22 Oct 2003 03:06:47 -0000 1.13
+++ say.c 8 Dec 2003 05:24:28 -0000 1.14
@@ -378,8 +378,15 @@
}
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;
More information about the svn-commits
mailing list