1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
$FreeBSD$
--- asterisk-driver/chan_oh323.c.orig
+++ asterisk-driver/chan_oh323.c
@@ -34,6 +34,7 @@
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
+#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
@@ -43,6 +44,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <math.h>
+#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/signal.h>
@@ -83,6 +85,8 @@
#include "asterisk/threadstorage.h"
#include "asterisk/translate.h"
+#define CRASH abort()
+
#include "wrapper.hxx"
#include "oh323.h"
@@ -954,8 +958,8 @@
static void oh323_format2codecset(int, int *, int);
static int context_from_alias(char *, char **);
static int context_from_prefix(char *, char **);
-static int oh323_release(void *);
-static int oh323_exec_request(void *data);
+static int oh323_release(const void *);
+static int oh323_exec_request(const void *data);
static struct oh323_ep *find_oh323_ep(char *epname, char *host, char *user);
void oh323_atexit(void);
unsigned int generate_uid(void);
@@ -4110,7 +4114,7 @@
/******************************************************************************/
/* Monitoring thread and queue call-back functions ****************************/
-static int oh323_exec_request(void *data)
+static int oh323_exec_request(const void *data)
{
struct request_oh323 *e;
int res, i;
@@ -4217,7 +4221,7 @@
return(0);
}
-static int oh323_release(void *data)
+static int oh323_release(const void *data)
{
struct chan_oh323_pvt *pvt = (struct chan_oh323_pvt *)data;
int index;
@@ -4240,7 +4244,7 @@
return(0);
}
-static int oh323_gk_check(void *data)
+static int oh323_gk_check(const void *data)
{
char gkname[256];
@@ -4443,7 +4447,7 @@
return(-1);
}
}
- monitor_thread = -2;
+ monitor_thread = AST_PTHREADT_STOP;
} else {
ast_log(LOG_WARNING, "Unable to lock the monitor.\n");
return(-1);
|