aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-15 00:35:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-15 00:35:49 +0000
commite8df90dfd93b1389df302ca2c9458b48cc886b4c (patch)
treeaeba7cd5d56c45fa41c8dae39ea3146921e662dd
parent3810560a3f28da045bc78bc98e458f03163c4856 (diff)
Oops for mgcp and logger fix for old linux
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4246 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_mgcp.c2
-rwxr-xr-xlogger.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index a0b0724db..e25a0b2bc 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -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;
}
diff --git a/logger.c b/logger.c
index 7f32b70c2..853f0d895 100755
--- 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