aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 22:14:52 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 22:14:52 +0000
commita871e62297540d8d05a48a46d4702a52c9058ead (patch)
tree136321d5e063becc9e5631ff193a2d20ec9b1881 /main/say.c
parent8c6167185d2bdaa325f933f87dd67c84a2bf7a83 (diff)
Adding revision 169794 to 1.4 since 1.4 is also affected by the issue
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@169797 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/main/say.c b/main/say.c
index b6b973ccd..d285e8214 100644
--- a/main/say.c
+++ b/main/say.c
@@ -2216,11 +2216,6 @@ static int ast_say_number_full_tw(struct ast_channel *chan, int num, const char
num -= ((num / 100) * 100);
} else if (num < 10000){
snprintf(buf, 10, "%d", num);
- if (last_length - strlen(buf) > 1 && last_length != 0 && last_length % strlen(buf) > 0) {
- last_length = strlen(buf);
- playz++;
- continue;
- }
snprintf(fn, sizeof(fn), "digits/%d", (num / 1000));
playt++;
snprintf(buf, 10, "%d", num);
@@ -2231,9 +2226,6 @@ static int ast_say_number_full_tw(struct ast_channel *chan, int num, const char
res = ast_say_number_full_tw(chan, num / 10000, ints, language, audiofd, ctrlfd);
if (res)
return res;
- if (((num / 10000) % (num/100000)) == 0)
- playz++;
-
snprintf(buf, 10, "%d", num);
ast_log(LOG_DEBUG, "Number '%d' %d %d\n", num, (int)strlen(buf), last_length);
num -= ((num / 10000) * 10000);