Merged revisions 114579 via svnmerge from
[asterisk/asterisk.git] / main / pbx.c
index 3223033..fc2bc98 100644 (file)
@@ -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)