From d4ebf1dff1f1ba98d2d73fcdfd0d415e6c54a7e2 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 23 Apr 2008 14:54:11 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@114579 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index 685610583c..d6564db4f6 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)