aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcodecs/codec_g723_1.c1
-rwxr-xr-xpbx.c4
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>
diff --git a/pbx.c b/pbx.c
index 8298b8a9d..38a2865b1 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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;
}