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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
--- asterisk-1.0.x/chan_unicall.c.orig 2005-09-05 23:10:30.000000000 +0200
+++ asterisk-1.0.x/chan_unicall.c 2005-09-05 23:12:06.000000000 +0200
@@ -56,7 +56,7 @@
#include <spandsp.h>
#include <libsupertone.h>
-#include "../asterisk.h"
+/* #include "../asterisk.h" */
#if defined(OLD_WAY)
#define ast_bridged_channel(x) x->bridge
--- asterisk-1.1.x/chan_unicall.c.orig 2005-09-05 23:10:55.000000000 +0200
+++ asterisk-1.1.x/chan_unicall.c 2005-09-05 23:11:50.000000000 +0200
@@ -31,30 +31,30 @@
#include <libsupertone.h>
#include <unicall.h>
-#include "asterisk.h"
+#include <asterisk/asterisk.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include "asterisk/lock.h"
-#include "asterisk/channel.h"
-#include "asterisk/config.h"
-#include "asterisk/logger.h"
-#include "asterisk/module.h"
-#include "asterisk/pbx.h"
-#include "asterisk/options.h"
-#include "asterisk/file.h"
-#include "asterisk/ulaw.h"
-#include "asterisk/alaw.h"
-#include "asterisk/callerid.h"
-#include "asterisk/adsi.h"
-#include "asterisk/cli.h"
-#include "asterisk/cdr.h"
-#include "asterisk/musiconhold.h"
-#include "asterisk/say.h"
-#include "asterisk/app.h"
-#include "asterisk/dsp.h"
-#include "asterisk/utils.h"
-#include "asterisk/causes.h"
+#include <asterisk/lock.h>
+#include <asterisk/channel.h>
+#include <asterisk/config.h>
+#include <asterisk/logger.h>
+#include <asterisk/module.h>
+#include <asterisk/pbx.h>
+#include <asterisk/options.h>
+#include <asterisk/file.h>
+#include <asterisk/ulaw.h>
+#include <asterisk/alaw.h>
+#include <asterisk/callerid.h>
+#include <asterisk/adsi.h>
+#include <asterisk/cli.h>
+#include <asterisk/cdr.h>
+#include <asterisk/musiconhold.h>
+#include <asterisk/say.h>
+#include <asterisk/app.h>
+#include <asterisk/dsp.h>
+#include <asterisk/utils.h>
+#include <asterisk/causes.h>
/*
XXX
--- /dev/null 1970-01-01 01:00:00.000000000 +0100
+++ Makefile 2005-09-05 23:59:22.000000000 +0200
@@ -0,0 +1,27 @@
+.EXPORT_ALL_VARIABLES:
+
+CC=cc
+INSTALL=install
+AST_CFG=/usr/bin/asterisk-config
+
+AST_INCLUDE_DIR=/usr/include/asterisk
+AST_CONFIG_DIR=/etc/asterisk
+AST_MODULES_DIR=/usr/lib/asterisk/modules
+
+TARGETS:=chan_unicall.so
+
+CFLAGS=$(shell $(AST_CFG) --cflags)
+SOLINK=$(shell $(AST_CFG) --solink)
+LIBS=-lunicall -lxml2 -lsupertone -lspandsp -ltiff -lmfcr2
+
+SUBDIR=$(shell [ -f $(AST_INCLUDE_DIR)/channel_pvt.h ] && echo "asterisk-1.0.x" || echo "asterisk-1.1.x")
+
+.PHONY: all install $(SUBDIR)
+
+all: $(SUBDIR)
+
+$(SUBDIR):
+ $(MAKE) -C $(SUBDIR) all
+
+install:
+ $(MAKE) -C $(SUBDIR) install
--- /dev/null 1970-01-01 01:00:00.000000000 +0100
+++ asterisk-1.0.x/Makefile 2005-09-06 00:00:05.000000000 +0200
@@ -0,0 +1,10 @@
+all: $(TARGETS)
+
+$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
+ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o chan_unicall.so chan_unicall.c $(LIBS)
+
+install:
+ for x in $(TARGETS); do \
+ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
+ done
+ $(INSTALL) -D -m 644 unicall.conf.sample $(DESTDIR)$(AST_CONFIG_DIR)/unicall.conf
--- /dev/null 1970-01-01 01:00:00.000000000 +0100
+++ asterisk-1.1.x/Makefile 2005-09-06 00:00:37.000000000 +0200
@@ -0,0 +1,10 @@
+all: $(TARGETS)
+
+$(TARGETS): $(patsubst %.so,%.c,$(TARGETS))
+ $(CC) $(CFLAGS) $(SOLINK) -fPIC -o chan_unicall.so chan_unicall.c $(LIBS)
+
+install:
+ for x in $(TARGETS); do \
+ $(INSTALL) -D -m 755 $$x $(DESTDIR)$(AST_MODULES_DIR)/$$x; \
+ done
+ $(INSTALL) -D -m 644 unicall.conf.sample $(DESTDIR)$(AST_CONFIG_DIR)/unicall.conf
|