Minor fixes
authorMark Spencer <markster@digium.com>
Tue, 29 Apr 2003 20:30:08 +0000 (20:30 +0000)
committerMark Spencer <markster@digium.com>
Tue, 29 Apr 2003 20:30:08 +0000 (20:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@936 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_g723_1.c
pbx.c

index ad56bb0..94ae898 100755 (executable)
@@ -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 8298b8a..38a2865 100755 (executable)
--- 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;
 }