diff options
-rwxr-xr-x | codecs/codec_g723_1.c | 1 | ||||
-rwxr-xr-x | pbx.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/codecs/codec_g723_1.c b/codecs/codec_g723_1.c index ad56bb02e..94ae898aa 100755 --- a/codecs/codec_g723_1.c +++ b/codecs/codec_g723_1.c @@ -21,6 +21,7 @@ #define TYPE_DONTSEND 0x3 #define TYPE_MASK 0x3 +#include <sys/types.h> #include <asterisk/translate.h> #include <asterisk/module.h> #include <asterisk/logger.h> @@ -4333,8 +4333,8 @@ static int pbx_builtin_saynumber(struct ast_channel *chan, void *data) static int pbx_builtin_saydigits(struct ast_channel *chan, void *data) { int res = 0; - if (data && atoi((char *)data)) - res = ast_say_digits(chan, atoi((char *)data), "", chan->language); + if (data) + res = ast_say_digit_str(chan, (char *)data, "", chan->language); return res; } |