aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-23 14:54:11 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-23 14:54:11 +0000
commit3e94b4368c5b11503f1aa754624ec2cc300d8aec (patch)
tree6fc158fde551740d2f7d06986a88d7e514a75695 /main/pbx.c
parent03b6ede21d4e372c2c355e6b192e002c2dd91451 (diff)
Instead of stopping dialplan execution when SayNumber attempts to say a large number that it can not print out a message informing the user and continue on.
(closes issue #12502) Reported by: bcnit git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114579 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 685610583..d6564db4f 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -6076,7 +6076,12 @@ static int pbx_builtin_saynumber(struct ast_channel *chan, void *data)
return -1;
}
}
- return ast_say_number(chan, atoi(tmp), "", chan->language, options);
+
+ if (ast_say_number(chan, atoi(tmp), "", chan->language, options)) {
+ ast_log(LOG_WARNING, "We were unable to say the number %s, is it too large?\n", tmp);
+ }
+
+ return 0;
}
static int pbx_builtin_saydigits(struct ast_channel *chan, void *data)