--- work/asterisk-1.0.9/say.c Wed Jun 1 22:56:18 2005 +++ /root/say.c Fri Sep 23 11:25:51 2005 @@ -2094,22 +2094,8 @@ snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_min); res = wait_file(chan,ints,nextmsg,lang); } - } else if ((tm.tm_min < 21) || (tm.tm_min % 10 == 0)) { - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_min); - res = wait_file(chan,ints,nextmsg,lang); } else { - int ten, one; - ten = (tm.tm_min / 10) * 10; - one = (tm.tm_min % 10); - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", ten); - res = wait_file(chan,ints,nextmsg,lang); - if (!res) { - /* Fifty, not fifty-zero */ - if (one != 0) { - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", one); - res = wait_file(chan,ints,nextmsg,lang); - } - } + res = ast_say_number(chan, tm.tm_min, ints, lang, (char *) NULL); } break; case 'P': @@ -2183,22 +2169,8 @@ snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_sec); res = wait_file(chan,ints,nextmsg,lang); } - } else if ((tm.tm_sec < 21) || (tm.tm_sec % 10 == 0)) { - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_sec); - res = wait_file(chan,ints,nextmsg,lang); } else { - int ten, one; - ten = (tm.tm_sec / 10) * 10; - one = (tm.tm_sec % 10); - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", ten); - res = wait_file(chan,ints,nextmsg,lang); - if (!res) { - /* Fifty, not fifty-zero */ - if (one != 0) { - snprintf(nextmsg,sizeof(nextmsg), "digits/%d", one); - res = wait_file(chan,ints,nextmsg,lang); - } - } + res = ast_say_number(chan, tm.tm_sec, ints, lang, (char *) NULL); } break; case 'T':