diff options
author | Joshua Colp <jcolp@digium.com> | 2008-04-23 14:55:03 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2008-04-23 14:55:03 +0000 |
commit | c3dd5e3e27f0692e653da38bd64bdc4538fb97c7 (patch) | |
tree | 4a4361284af26bd7c53a55ce174b9649ac02585c /main/pbx.c | |
parent | 797adf6bf8ead9bad8c5a4ece744feefeb171c49 (diff) |
Merged revisions 114579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r114579 | file | 2008-04-23 11:54:11 -0300 (Wed, 23 Apr 2008) | 4 lines
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/trunk@114580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 322303383..fc2bc98ec 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -8012,7 +8012,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) |