Oops for mgcp and logger fix for old linux
authorMark Spencer <markster@digium.com>
Mon, 15 Nov 2004 00:35:49 +0000 (00:35 +0000)
committerMark Spencer <markster@digium.com>
Mon, 15 Nov 2004 00:35:49 +0000 (00:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4246 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c
logger.c

index a0b0724..e25a0b2 100755 (executable)
@@ -899,7 +899,7 @@ static int mgcp_call(struct ast_channel *ast, char *dest, int timeout)
                res = -1;
        }
        ast_mutex_unlock(&sub->lock);
-       ast_queue_frame(ast, AST_CONTROL_RINGING);
+       ast_queue_control(ast, AST_CONTROL_RINGING);
        return res;
 }
 
index 7f32b70..853f0d8 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -48,7 +48,7 @@ static int syslog_level_map[] = {
 
 #define MAX_MSG_QUEUE 200
 
-#ifdef __linux__
+#if defined(__linux__) && defined(__NR_gettid)
 #include <asm/unistd.h>
 #define GETTID() syscall(__NR_gettid)
 #else