diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-23 14:56:04 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-23 14:56:04 +0000 |
commit | 39714c508744b6d99d90578631c7d814f38f1574 (patch) | |
tree | d1cbca67858e53faf478f9533537060af3d6e307 /main | |
parent | d18a305625ba3ade6eb2f17014d3d5ee0cd553e5 (diff) |
Merged revisions 114580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r114580 | file | 2008-04-23 11:55:03 -0300 (Wed, 23 Apr 2008) | 12 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@114581 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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 aa08e96b5..f2121933c 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -7703,7 +7703,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) |