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)