Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,356 +0,0 @@
1
-/*
2
- * version and compile flags macros 
3
- *
4
- * Copyright (C) 2004 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/** compile flags and other version related defines.
24
- * @file ver_defs.h
25
- * @ingroup core
26
- */
27
-
28
-#ifndef version_h
29
-#define version_h
30
-
31
-#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS_QUOTED ")" 
32
-
33
-#ifdef STATS
34
-#define STATS_STR  "STATS: On"
35
-#else
36
-#define STATS_STR  "STATS: Off"
37
-#endif
38
-
39
-#ifdef USE_TCP
40
-#define USE_TCP_STR ", USE_TCP"
41
-#else
42
-#define USE_TCP_STR ""
43
-#endif
44
-
45
-#ifdef USE_TLS
46
-#define USE_TLS_STR ", USE_TLS"
47
-#else 
48
-#define USE_TLS_STR ""
49
-#endif
50
-
51
-#ifdef USE_SCTP
52
-#define USE_SCTP_STR ", USE_SCTP"
53
-#else
54
-#define USE_SCTP_STR ""
55
-#endif
56
-
57
-#ifdef CORE_TLS
58
-#define CORE_TLS_STR ", CORE_TLS"
59
-#else 
60
-#define CORE_TLS_STR ""
61
-#endif
62
-
63
-#ifdef TLS_HOOKS
64
-#define TLS_HOOKS_STR ", TLS_HOOKS"
65
-#else 
66
-#define TLS_HOOKS_STR ""
67
-#endif
68
-
69
-
70
-#ifdef USE_RAW_SOCKS
71
-#define USE_RAW_SOCKS_STR ", USE_RAW_SOCKS"
72
-#else
73
-#define USE_RAW_SOCKS_STR ""
74
-#endif
75
-
76
-
77
-#ifdef DISABLE_NAGLE
78
-#define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
79
-#else
80
-#define DISABLE_NAGLE_STR ""
81
-#endif
82
-
83
-#ifdef USE_MCAST
84
-#define USE_MCAST_STR ", USE_MCAST"
85
-#else
86
-#define USE_MCAST_STR ""
87
-#endif
88
-
89
-
90
-#ifdef NO_DEBUG
91
-#define NO_DEBUG_STR ", NO_DEBUG"
92
-#else
93
-#define NO_DEBUG_STR ""
94
-#endif
95
-
96
-#ifdef NO_LOG
97
-#define NO_LOG_STR ", NO_LOG"
98
-#else
99
-#define NO_LOG_STR ""
100
-#endif
101
-
102
-#ifdef EXTRA_DEBUG
103
-#define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
104
-#else
105
-#define EXTRA_DEBUG_STR ""
106
-#endif
107
-
108
-#ifdef DNS_IP_HACK
109
-#define DNS_IP_HACK_STR ", DNS_IP_HACK"
110
-#else
111
-#define DNS_IP_HACK_STR ""
112
-#endif
113
-
114
-#ifdef SHM_MEM
115
-#define SHM_MEM_STR ", SHM_MEM"
116
-#else
117
-#define SHM_MEM_STR ""
118
-#endif
119
-
120
-#ifdef SHM_MMAP
121
-#define SHM_MMAP_STR ", SHM_MMAP"
122
-#else
123
-#define SHM_MMAP_STR ""
124
-#endif
125
-
126
-#ifdef PKG_MALLOC
127
-#define PKG_MALLOC_STR ", PKG_MALLOC"
128
-#else
129
-#define PKG_MALLOC_STR ""
130
-#endif
131
-
132
-#ifdef F_MALLOC
133
-#define F_MALLOC_STR ", F_MALLOC"
134
-#else
135
-#define F_MALLOC_STR ""
136
-#endif
137
-
138
-#ifdef Q_MALLOC
139
-#define Q_MALLOC_STR ", Q_MALLOC"
140
-#else
141
-#define Q_MALLOC_STR ""
142
-#endif
143
-
144
-#ifdef DL_MALLOC
145
-#define DL_MALLOC_STR ", DL_MALLOC"
146
-#else
147
-#define DL_MALLOC_STR ""
148
-#endif
149
-
150
-#ifdef SF_MALLOC
151
-#define SF_MALLOC_STR ", SF_MALLOC"
152
-#else
153
-#define SF_MALLOC_STR ""
154
-#endif
155
-
156
-#ifdef LL_MALLOC
157
-#define LL_MALLOC_STR ", LL_MALLOC"
158
-#else
159
-#define LL_MALLOC_STR ""
160
-#endif
161
-
162
-#ifdef TLSF_MALLOC
163
-#define TLSF_MALLOC_STR ", TLSF_MALLOC"
164
-#else
165
-#define TLSF_MALLOC_STR ""
166
-#endif
167
-
168
-#ifdef USE_SHM_MEM
169
-#define USE_SHM_MEM_STR ", USE_SHM_MEM"
170
-#else
171
-#define USE_SHM_MEM_STR ""
172
-#endif
173
-
174
-#ifdef DBG_SR_MEMORY
175
-#define DBG_SR_MEMORY_STR ", DBG_SR_MEMORY"
176
-#else
177
-#define DBG_SR_MEMORY_STR ""
178
-#endif
179
-
180
-#ifdef DBG_QM_MALLOC
181
-#define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
182
-#else
183
-#define DBG_QM_MALLOC_STR ""
184
-#endif
185
-
186
-#ifdef DBG_F_MALLOC
187
-#define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
188
-#else
189
-#define DBG_F_MALLOC_STR ""
190
-#endif
191
-
192
-#ifdef DBG_SF_MALLOC
193
-#define DBG_SF_MALLOC_STR ", DBG_SF_MALLOC"
194
-#else
195
-#define DBG_SF_MALLOC_STR ""
196
-#endif
197
-
198
-#ifdef DBG_LL_MALLOC
199
-#define DBG_LL_MALLOC_STR ", DBG_SF_MALLOC"
200
-#else
201
-#define DBG_LL_MALLOC_STR ""
202
-#endif
203
-
204
-#ifdef DBG_TLSF_MALLOC
205
-#define DBG_TLSF_MALLOC_STR ", DBG_TLSF_MALLOC"
206
-#else
207
-#define DBG_TLSF_MALLOC_STR ""
208
-#endif
209
-
210
-#ifdef TIMER_DEBUG
211
-#define TIMER_DEBUG_STR ", TIMER_DEBUG"
212
-#else
213
-#define TIMER_DEBUG_STR ""
214
-#endif
215
-
216
-#ifdef USE_FUTEX
217
-#define USE_FUTEX_STR ", USE_FUTEX"
218
-#else
219
-#define USE_FUTEX_STR ""
220
-#endif
221
-
222
-
223
-#ifdef FAST_LOCK
224
-#ifdef BUSY_WAIT
225
-#define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
226
-#elif defined (ADAPTIVE_WAIT)
227
-#define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
228
-#else
229
-#define FAST_LOCK_STR ", FAST_LOCK"
230
-#endif
231
-#else
232
-#define FAST_LOCK_STR ""
233
-#endif
234
-
235
-#ifdef USE_PTHREAD_MUTEX
236
-#define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
237
-#else
238
-#define USE_PTHREAD_MUTEX_STR ""
239
-#endif
240
-
241
-#ifdef USE_POSIX_SEM
242
-#define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
243
-#else
244
-#define USE_POSIX_SEM_STR ""
245
-#endif
246
-
247
-#ifdef USE_SYSV_SEM
248
-#define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
249
-#else
250
-#define USE_SYSV_SEM_STR ""
251
-#endif
252
-
253
-#ifdef NOSMP
254
-#define NOSMP_STR "-NOSMP"
255
-#else
256
-#define NOSMP_STR ""
257
-#endif
258
-
259
-
260
-#ifdef USE_COMP
261
-#define USE_COMP_STR ", USE_COMP"
262
-#else
263
-#define USE_COMP_STR ""
264
-#endif
265
-
266
-
267
-#ifdef USE_DNS_CACHE
268
-#define USE_DNS_CACHE_STR ", USE_DNS_CACHE"
269
-#else
270
-#define USE_DNS_CACHE_STR ""
271
-#endif
272
-
273
-#ifdef USE_DNS_FAILOVER
274
-#define USE_DNS_FAILOVER_STR ", USE_DNS_FAILOVER"
275
-#else
276
-#define USE_DNS_FAILOVER_STR ""
277
-#endif
278
-
279
-#ifdef DNS_WATCHDOG_SUPPORT
280
-#define DNS_WATCHDOG_SUPPORT_STR ", DNS_WATCHDOG_SUPPORT"
281
-#else
282
-#define DNS_WATCHDOG_SUPPORT_STR ""
283
-#endif
284
-
285
-#ifdef USE_NAPTR
286
-#define USE_NAPTR_STR ", USE_NAPTR"
287
-#else
288
-#define USE_NAPTR_STR ""
289
-#endif
290
-
291
-#ifdef USE_DST_BLACKLIST
292
-#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
293
-#else
294
-#define USE_DST_BLACKLIST_STR ""
295
-#endif
296
-
297
-#ifdef NO_SIG_DEBUG
298
-#define NO_SIG_DEBUG_STR ", NO_SIG_DEBUG"
299
-#else
300
-#define NO_SIG_DEBUG_STR ""
301
-#endif
302
-
303
-#ifdef HAVE_RESOLV_RES 
304
-#define HAVE_RESOLV_RES_STR ", HAVE_RESOLV_RES"
305
-#else
306
-#define HAVE_RESOLV_RES_STR ""
307
-#endif
308
-
309
-#ifdef MEM_JOIN_FREE
310
-#define MEM_JOIN_FREE_STR ", MEM_JOIN_FREE"
311
-#else
312
-#define MEM_JOIN_FREE_STR ""
313
-#endif
314
-
315
-#ifdef SYSLOG_CALLBACK_SUPPORT 
316
-#define SYSLOG_CALLBACK_SUPPORT_STR, ", SYSLOG_CALLBACK_SUPPORT"
317
-#else
318
-#define SYSLOG_CALLBACK_SUPPORT_STR ""
319
-#endif
320
-
321
-#ifdef MYSQL_FAKE_NULL
322
-#define MYSQL_FAKE_NULL_STR, ", MYSQL_FAKE_NULL"
323
-#else
324
-#define MYSQL_FAKE_NULL_STR ""
325
-#endif
326
-
327
-#ifdef USE_DNS_CACHE_STATS
328
-#define USE_DNS_CACHE_STATS_STR ", USE_DNS_CACHE_STATS"
329
-#else
330
-#define USE_DNS_CACHE_STATS_STR ""
331
-#endif
332
-
333
-#ifdef USE_DST_BLACKLIST_STATS
334
-#define USE_DST_BLACKLIST_STATS_STR ", USE_DST_BLACKLIST_STATS"
335
-#else
336
-#define USE_DST_BLACKLIST_STATS_STR ""
337
-#endif
338
-
339
-#define SER_COMPILE_FLAGS \
340
-	STATS_STR EXTRA_DEBUG_STR USE_TCP_STR USE_TLS_STR \
341
-	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR USE_RAW_SOCKS_STR \
342
-	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
343
-	NO_SIG_DEBUG_STR DNS_IP_HACK_STR \
344
-	USE_SHM_MEM_STR SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
345
-	Q_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR LL_MALLOC_STR TLSF_MALLOC_STR \
346
-	DBG_SR_MEMORY_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR \
347
-	DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR DBG_TLSF_MALLOC_STR \
348
-	TIMER_DEBUG_STR USE_FUTEX_STR \
349
-	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
350
-	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
351
-	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
352
-	HAVE_RESOLV_RES_STR SYSLOG_CALLBACK_SUPPORT_STR MYSQL_FAKE_NULL_STR \
353
-	USE_DST_BLACKLIST_STATS_STR USE_DNS_CACHE_STATS_STR
354
-
355
-
356
-#endif
Browse code

core: defines printed in version string adjusted for new memory manager

Daniel-Constantin Mierla authored on 14/09/2015 07:32:38
Showing 1 changed files
... ...
@@ -135,6 +135,12 @@
135 135
 #define F_MALLOC_STR ""
136 136
 #endif
137 137
 
138
+#ifdef Q_MALLOC
139
+#define Q_MALLOC_STR ", Q_MALLOC"
140
+#else
141
+#define Q_MALLOC_STR ""
142
+#endif
143
+
138 144
 #ifdef DL_MALLOC
139 145
 #define DL_MALLOC_STR ", DL_MALLOC"
140 146
 #else
... ...
@@ -165,6 +171,12 @@
165 171
 #define USE_SHM_MEM_STR ""
166 172
 #endif
167 173
 
174
+#ifdef DBG_SR_MEMORY
175
+#define DBG_SR_MEMORY_STR ", DBG_SR_MEMORY"
176
+#else
177
+#define DBG_SR_MEMORY_STR ""
178
+#endif
179
+
168 180
 #ifdef DBG_QM_MALLOC
169 181
 #define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
170 182
 #else
... ...
@@ -177,12 +189,6 @@
177 189
 #define DBG_F_MALLOC_STR ""
178 190
 #endif
179 191
 
180
-#ifdef DEBUG_DMALLOC
181
-#define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
182
-#else
183
-#define DEBUG_DMALLOC_STR ""
184
-#endif
185
-
186 192
 #ifdef DBG_SF_MALLOC
187 193
 #define DBG_SF_MALLOC_STR ", DBG_SF_MALLOC"
188 194
 #else
... ...
@@ -332,15 +338,14 @@
332 338
 
333 339
 #define SER_COMPILE_FLAGS \
334 340
 	STATS_STR EXTRA_DEBUG_STR USE_TCP_STR USE_TLS_STR \
335
-	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR  USE_RAW_SOCKS_STR \
341
+	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR USE_RAW_SOCKS_STR \
336 342
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
337
-	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
338
-	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR TLSF_MALLOC_STR \
339
-	USE_SHM_MEM_STR \
340
-	DBG_QM_MALLOC_STR \
341
-	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR DBG_TLSF_MALLOC_STR \
342
-	TIMER_DEBUG_STR \
343
-	USE_FUTEX_STR \
343
+	NO_SIG_DEBUG_STR DNS_IP_HACK_STR \
344
+	USE_SHM_MEM_STR SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
345
+	Q_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR LL_MALLOC_STR TLSF_MALLOC_STR \
346
+	DBG_SR_MEMORY_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR \
347
+	DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR DBG_TLSF_MALLOC_STR \
348
+	TIMER_DEBUG_STR USE_FUTEX_STR \
344 349
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
345 350
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
346 351
 	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
Browse code

core: add TLSF in version flags string

Camille Oudot authored on 10/08/2015 13:07:10
Showing 1 changed files
... ...
@@ -153,6 +153,12 @@
153 153
 #define LL_MALLOC_STR ""
154 154
 #endif
155 155
 
156
+#ifdef TLSF_MALLOC
157
+#define TLSF_MALLOC_STR ", TLSF_MALLOC"
158
+#else
159
+#define TLSF_MALLOC_STR ""
160
+#endif
161
+
156 162
 #ifdef USE_SHM_MEM
157 163
 #define USE_SHM_MEM_STR ", USE_SHM_MEM"
158 164
 #else
... ...
@@ -189,6 +195,12 @@
189 195
 #define DBG_LL_MALLOC_STR ""
190 196
 #endif
191 197
 
198
+#ifdef DBG_TLSF_MALLOC
199
+#define DBG_TLSF_MALLOC_STR ", DBG_TLSF_MALLOC"
200
+#else
201
+#define DBG_TLSF_MALLOC_STR ""
202
+#endif
203
+
192 204
 #ifdef TIMER_DEBUG
193 205
 #define TIMER_DEBUG_STR ", TIMER_DEBUG"
194 206
 #else
... ...
@@ -323,10 +335,10 @@
323 335
 	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR  USE_RAW_SOCKS_STR \
324 336
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
325 337
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
326
-	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
338
+	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR TLSF_MALLOC_STR \
327 339
 	USE_SHM_MEM_STR \
328 340
 	DBG_QM_MALLOC_STR \
329
-	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR \
341
+	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR DBG_TLSF_MALLOC_STR \
330 342
 	TIMER_DEBUG_STR \
331 343
 	USE_FUTEX_STR \
332 344
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
Browse code

core: Modify doxygen, remove history, remove SVN IDs, change "ser" and "sip-router" to "KAMAILIO"

Olle E. Johansson authored on 16/01/2015 16:38:46
Showing 1 changed files
... ...
@@ -1,19 +1,16 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * version and compile flags macros 
5 3
  *
6
- *
7 4
  * Copyright (C) 2004 FhG Fokus
8 5
  *
9
- * This file is part of SIP-router, a free SIP server.
6
+ * This file is part of Kamailio, a free SIP server.
10 7
  *
11
- * SIP-router is free software; you can redistribute it and/or modify
8
+ * Kamailio is free software; you can redistribute it and/or modify
12 9
  * it under the terms of the GNU General Public License as published by
13 10
  * the Free Software Foundation; either version 2 of the License, or
14 11
  * (at your option) any later version
15 12
  *
16
- * SIP-router is distributed in the hope that it will be useful,
13
+ * Kamailio is distributed in the hope that it will be useful,
17 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 16
  * GNU General Public License for more details.
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@
20 20
  *
21 21
  * You should have received a copy of the GNU General Public License 
22 22
  * along with this program; if not, write to the Free Software 
23
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 24
  */
25 25
 
26 26
 /** compile flags and other version related defines.
Browse code

core and modules: make IPv6 default, remove compile time flags

* Make IPv6 the default in the core and affected modules
* it has been default switched on since a long time, and was introduced in 2002
* even on embedded systems one probably want now proper IPv6 support
* there was an issue in cygwin in 2008, but IPv6 is there also available since v1.7
* remove over 160 #ifdefs, cleanup the code a lot and removes many of rarely
tested alternative code paths to ease support of the codebase
* note for gentoo maintainer: please review your packages, they will maybe not
work now correctly anymore if somebody specified -ipv6 in the use flags

Henning Westerholt authored on 18/05/2013 08:07:25
Showing 1 changed files
... ...
@@ -39,12 +39,6 @@
39 39
 #define STATS_STR  "STATS: Off"
40 40
 #endif
41 41
 
42
-#ifdef USE_IPV6
43
-#define USE_IPV6_STR ", USE_IPV6"
44
-#else
45
-#define USE_IPV6_STR ""
46
-#endif
47
-
48 42
 #ifdef USE_TCP
49 43
 #define USE_TCP_STR ", USE_TCP"
50 44
 #else
... ...
@@ -328,7 +322,7 @@
328 322
 #endif
329 323
 
330 324
 #define SER_COMPILE_FLAGS \
331
-	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
325
+	STATS_STR EXTRA_DEBUG_STR USE_TCP_STR USE_TLS_STR \
332 326
 	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR  USE_RAW_SOCKS_STR \
333 327
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
334 328
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
Browse code

core: removed STUN from core

- Added hooks so that STUN messages can be passed to a module
- Removed STUN configuration file parameters

Peter Dunkley authored on 29/03/2013 21:47:57
Showing 1 changed files
... ...
@@ -291,12 +291,6 @@
291 291
 #define NO_SIG_DEBUG_STR ""
292 292
 #endif
293 293
 
294
-#ifdef USE_STUN
295
-#define USE_STUN_STR ", USE_STUN"
296
-#else
297
-#define USE_STUN_STR ""
298
-#endif
299
-
300 294
 #ifdef HAVE_RESOLV_RES 
301 295
 #define HAVE_RESOLV_RES_STR ", HAVE_RESOLV_RES"
302 296
 #else
... ...
@@ -336,7 +330,7 @@
336 330
 #define SER_COMPILE_FLAGS \
337 331
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
338 332
 	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR  USE_RAW_SOCKS_STR \
339
-	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
333
+	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
340 334
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
341 335
 	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
342 336
 	USE_SHM_MEM_STR \
Browse code

core: mem - join free packets option can be set from config

- better control over existing code for joining free memory fragments
- existing QM_JOIN_FREE renamed to MEM_JOIN_FREE - to be used in other
memory managers than q_malloc
- new cfg parameter mem_join - if set to 1, q_malloc does join of free
memory fragments. default is 0. in use if MEM_JOIN_FREE is defined

Daniel-Constantin Mierla authored on 29/03/2012 11:57:22
Showing 1 changed files
... ...
@@ -303,10 +303,10 @@
303 303
 #define HAVE_RESOLV_RES_STR ""
304 304
 #endif
305 305
 
306
-#ifdef QM_JOIN_FREE 
307
-#define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
306
+#ifdef MEM_JOIN_FREE
307
+#define MEM_JOIN_FREE_STR ", MEM_JOIN_FREE"
308 308
 #else
309
-#define QM_JOIN_FREE_STR ""
309
+#define MEM_JOIN_FREE_STR ""
310 310
 #endif
311 311
 
312 312
 #ifdef SYSLOG_CALLBACK_SUPPORT 
Browse code

core: Changed HTTP_REPLY_HACK from a compile-time to a run-time option

- By default it is off, to turn it on set http_reply_hack=yes in kamailio.cfg
- You need to turn this on if you use xhttp _and_ event_route[sl:local-response].
This is because HTTP responses are stateless responses and when the
event_route is run it has to parse the response. Without HTTP_REPLY_HACK
Kamailio can't actually parse HTTP responses.

Peter Dunkley authored on 06/03/2012 18:33:42
Showing 1 changed files
... ...
@@ -303,12 +303,6 @@
303 303
 #define HAVE_RESOLV_RES_STR ""
304 304
 #endif
305 305
 
306
-#ifdef HTTP_REPLY_HACK 
307
-#define HTTP_REPLY_HACK_STR ", HTTP_REPLY_HACK"
308
-#else
309
-#define HTTP_REPLY_HACK_STR ""
310
-#endif
311
-
312 306
 #ifdef QM_JOIN_FREE 
313 307
 #define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
314 308
 #else
... ...
@@ -353,8 +347,8 @@
353 347
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
354 348
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
355 349
 	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
356
-	HAVE_RESOLV_RES_STR HTTP_REPLY_HACK_STR SYSLOG_CALLBACK_SUPPORT_STR \
357
-	MYSQL_FAKE_NULL_STR USE_DST_BLACKLIST_STATS_STR USE_DNS_CACHE_STATS_STR
350
+	HAVE_RESOLV_RES_STR SYSLOG_CALLBACK_SUPPORT_STR MYSQL_FAKE_NULL_STR \
351
+	USE_DST_BLACKLIST_STATS_STR USE_DNS_CACHE_STATS_STR
358 352
 
359 353
 
360 354
 #endif
Browse code

Merge remote branch 'origin/andrei/raw_sock'

Raw socket support for sending UDP IPv4 packets
(major performance increase on multi-cpu machines running linux:
40-50% faster at least in stateless mode).

* origin/andrei/raw_sock:
NEWS: notes about the new udp4_raw mode
raw sockets: added info rpc
core: compile raw socket support by default on freebsd
raw sockets: freebsd support
cfg: delay cfg_shmize to just before forking
core: always compile the raw sockets code on linux
raw sockets: ttl can be set from the config file
raw sockets: ttl can be set or auto-detected
core: include raw socket support in version info
raw sockets: use BSD ip & udp structure versions
raw sockets: config file support
raw sockets: udp send will use now raw sockets if enabled
raw sockets: runtime config support
raw sockets: build ip header & fragmentation support
raw socket: compilation fixes
raw sockets: get dst. ip from the ip header
core: basic support for receiving udp sip packets on raw sockets
core: basic raw socket support functions

Andrei Pelinescu-Onciul authored on 11/08/2010 20:49:04
Showing 0 changed files
Browse code

core: move version strings to a separate file

- moved version strings to variables (instead of macros) and in a
separate file (ver.c). This will require re-compiling only one
small file and re-linking on version or repository changes (e.g.
new commit or local uncommitted changes), instead of recompiling
main.c and core_cmd.c.
- more detailed info about the repository state is now available via
repo_hash (hash of the top commit) and repo_state (dirty or "").
- the core.version rpc reports now directly the version number
(complete with repository hash and state), without prefixing it
with "Server:", e.g.:
ser 3.0.99-dev1 (i386/linux) dd9681-dirty
instead of
Server: ser (3.0.99-dev1 (i386/freebsd)) d89437-dirty

Andrei Pelinescu-Onciul authored on 13/07/2010 17:59:26
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,353 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * version and compile flags macros 
5
+ *
6
+ *
7
+ * Copyright (C) 2004 FhG Fokus
8
+ *
9
+ * This file is part of SIP-router, a free SIP server.
10
+ *
11
+ * SIP-router is free software; you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation; either version 2 of the License, or
14
+ * (at your option) any later version
15
+ *
16
+ * SIP-router is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License 
22
+ * along with this program; if not, write to the Free Software 
23
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
+ */
25
+
26
+/** compile flags and other version related defines.
27
+ * @file ver_defs.h
28
+ * @ingroup core
29
+ */
30
+
31
+#ifndef version_h
32
+#define version_h
33
+
34
+#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS_QUOTED ")" 
35
+
36
+#ifdef STATS
37
+#define STATS_STR  "STATS: On"
38
+#else
39
+#define STATS_STR  "STATS: Off"
40
+#endif
41
+
42
+#ifdef USE_IPV6
43
+#define USE_IPV6_STR ", USE_IPV6"
44
+#else
45
+#define USE_IPV6_STR ""
46
+#endif
47
+
48
+#ifdef USE_TCP
49
+#define USE_TCP_STR ", USE_TCP"
50
+#else
51
+#define USE_TCP_STR ""
52
+#endif
53
+
54
+#ifdef USE_TLS
55
+#define USE_TLS_STR ", USE_TLS"
56
+#else 
57
+#define USE_TLS_STR ""
58
+#endif
59
+
60
+#ifdef USE_SCTP
61
+#define USE_SCTP_STR ", USE_SCTP"
62
+#else
63
+#define USE_SCTP_STR ""
64
+#endif
65
+
66
+#ifdef CORE_TLS
67
+#define CORE_TLS_STR ", CORE_TLS"
68
+#else 
69
+#define CORE_TLS_STR ""
70
+#endif
71
+
72
+#ifdef TLS_HOOKS
73
+#define TLS_HOOKS_STR ", TLS_HOOKS"
74
+#else 
75
+#define TLS_HOOKS_STR ""
76
+#endif
77
+
78
+
79
+#ifdef DISABLE_NAGLE
80
+#define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
81
+#else
82
+#define DISABLE_NAGLE_STR ""
83
+#endif
84
+
85
+#ifdef USE_MCAST
86
+#define USE_MCAST_STR ", USE_MCAST"
87
+#else
88
+#define USE_MCAST_STR ""
89
+#endif
90
+
91
+
92
+#ifdef NO_DEBUG
93
+#define NO_DEBUG_STR ", NO_DEBUG"
94
+#else
95
+#define NO_DEBUG_STR ""
96
+#endif
97
+
98
+#ifdef NO_LOG
99
+#define NO_LOG_STR ", NO_LOG"
100
+#else
101
+#define NO_LOG_STR ""
102
+#endif
103
+
104
+#ifdef EXTRA_DEBUG
105
+#define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
106
+#else
107
+#define EXTRA_DEBUG_STR ""
108
+#endif
109
+
110
+#ifdef DNS_IP_HACK
111
+#define DNS_IP_HACK_STR ", DNS_IP_HACK"
112
+#else
113
+#define DNS_IP_HACK_STR ""
114
+#endif
115
+
116
+#ifdef SHM_MEM
117
+#define SHM_MEM_STR ", SHM_MEM"
118
+#else
119
+#define SHM_MEM_STR ""
120
+#endif
121
+
122
+#ifdef SHM_MMAP
123
+#define SHM_MMAP_STR ", SHM_MMAP"
124
+#else
125
+#define SHM_MMAP_STR ""
126
+#endif
127
+
128
+#ifdef PKG_MALLOC
129
+#define PKG_MALLOC_STR ", PKG_MALLOC"
130
+#else
131
+#define PKG_MALLOC_STR ""
132
+#endif
133
+
134
+#ifdef F_MALLOC
135
+#define F_MALLOC_STR ", F_MALLOC"
136
+#else
137
+#define F_MALLOC_STR ""
138
+#endif
139
+
140
+#ifdef DL_MALLOC
141
+#define DL_MALLOC_STR ", DL_MALLOC"
142
+#else
143
+#define DL_MALLOC_STR ""
144
+#endif
145
+
146
+#ifdef SF_MALLOC
147
+#define SF_MALLOC_STR ", SF_MALLOC"
148
+#else
149
+#define SF_MALLOC_STR ""
150
+#endif
151
+
152
+#ifdef LL_MALLOC
153
+#define LL_MALLOC_STR ", LL_MALLOC"
154
+#else
155
+#define LL_MALLOC_STR ""
156
+#endif
157
+
158
+#ifdef USE_SHM_MEM
159
+#define USE_SHM_MEM_STR ", USE_SHM_MEM"
160
+#else
161
+#define USE_SHM_MEM_STR ""
162
+#endif
163
+
164
+#ifdef DBG_QM_MALLOC
165
+#define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
166
+#else
167
+#define DBG_QM_MALLOC_STR ""
168
+#endif
169
+
170
+#ifdef DBG_F_MALLOC
171
+#define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
172
+#else
173
+#define DBG_F_MALLOC_STR ""
174
+#endif
175
+
176
+#ifdef DEBUG_DMALLOC
177
+#define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
178
+#else
179
+#define DEBUG_DMALLOC_STR ""
180
+#endif
181
+
182
+#ifdef DBG_SF_MALLOC
183
+#define DBG_SF_MALLOC_STR ", DBG_SF_MALLOC"
184
+#else
185
+#define DBG_SF_MALLOC_STR ""
186
+#endif
187
+
188
+#ifdef DBG_LL_MALLOC
189
+#define DBG_LL_MALLOC_STR ", DBG_SF_MALLOC"
190
+#else
191
+#define DBG_LL_MALLOC_STR ""
192
+#endif
193
+
194
+#ifdef TIMER_DEBUG
195
+#define TIMER_DEBUG_STR ", TIMER_DEBUG"
196
+#else
197
+#define TIMER_DEBUG_STR ""
198
+#endif
199
+
200
+#ifdef USE_FUTEX
201
+#define USE_FUTEX_STR ", USE_FUTEX"
202
+#else
203
+#define USE_FUTEX_STR ""
204
+#endif
205
+
206
+
207
+#ifdef FAST_LOCK
208
+#ifdef BUSY_WAIT
209
+#define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
210
+#elif defined (ADAPTIVE_WAIT)
211
+#define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
212
+#else
213
+#define FAST_LOCK_STR ", FAST_LOCK"
214
+#endif
215
+#else
216
+#define FAST_LOCK_STR ""
217
+#endif
218
+
219
+#ifdef USE_PTHREAD_MUTEX
220
+#define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
221
+#else
222
+#define USE_PTHREAD_MUTEX_STR ""
223
+#endif
224
+
225
+#ifdef USE_POSIX_SEM
226
+#define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
227
+#else
228
+#define USE_POSIX_SEM_STR ""
229
+#endif
230
+
231
+#ifdef USE_SYSV_SEM
232
+#define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
233
+#else
234
+#define USE_SYSV_SEM_STR ""
235
+#endif
236
+
237
+#ifdef NOSMP
238
+#define NOSMP_STR "-NOSMP"
239
+#else
240
+#define NOSMP_STR ""
241
+#endif
242
+
243
+
244
+#ifdef USE_COMP
245
+#define USE_COMP_STR ", USE_COMP"
246
+#else
247
+#define USE_COMP_STR ""
248
+#endif
249
+
250
+
251
+#ifdef USE_DNS_CACHE
252
+#define USE_DNS_CACHE_STR ", USE_DNS_CACHE"
253
+#else
254
+#define USE_DNS_CACHE_STR ""
255
+#endif
256
+
257
+#ifdef USE_DNS_FAILOVER
258
+#define USE_DNS_FAILOVER_STR ", USE_DNS_FAILOVER"
259
+#else
260
+#define USE_DNS_FAILOVER_STR ""
261
+#endif
262
+
263
+#ifdef DNS_WATCHDOG_SUPPORT
264
+#define DNS_WATCHDOG_SUPPORT_STR ", DNS_WATCHDOG_SUPPORT"
265
+#else
266
+#define DNS_WATCHDOG_SUPPORT_STR ""
267
+#endif
268
+
269
+#ifdef USE_NAPTR
270
+#define USE_NAPTR_STR ", USE_NAPTR"
271
+#else
272
+#define USE_NAPTR_STR ""
273
+#endif
274
+
275
+#ifdef USE_DST_BLACKLIST
276
+#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
277
+#else
278
+#define USE_DST_BLACKLIST_STR ""
279
+#endif
280
+
281
+#ifdef NO_SIG_DEBUG
282
+#define NO_SIG_DEBUG_STR ", NO_SIG_DEBUG"
283
+#else
284
+#define NO_SIG_DEBUG_STR ""
285
+#endif
286
+
287
+#ifdef USE_STUN
288
+#define USE_STUN_STR ", USE_STUN"
289
+#else
290
+#define USE_STUN_STR ""
291
+#endif
292
+
293
+#ifdef HAVE_RESOLV_RES 
294
+#define HAVE_RESOLV_RES_STR ", HAVE_RESOLV_RES"
295
+#else
296
+#define HAVE_RESOLV_RES_STR ""
297
+#endif
298
+
299
+#ifdef HTTP_REPLY_HACK 
300
+#define HTTP_REPLY_HACK_STR ", HTTP_REPLY_HACK"
301
+#else
302
+#define HTTP_REPLY_HACK_STR ""
303
+#endif
304
+
305
+#ifdef QM_JOIN_FREE 
306
+#define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
307
+#else
308
+#define QM_JOIN_FREE_STR ""
309
+#endif
310
+
311
+#ifdef SYSLOG_CALLBACK_SUPPORT 
312
+#define SYSLOG_CALLBACK_SUPPORT_STR, ", SYSLOG_CALLBACK_SUPPORT"
313
+#else
314
+#define SYSLOG_CALLBACK_SUPPORT_STR ""
315
+#endif
316
+
317
+#ifdef MYSQL_FAKE_NULL
318
+#define MYSQL_FAKE_NULL_STR, ", MYSQL_FAKE_NULL"
319
+#else
320
+#define MYSQL_FAKE_NULL_STR ""
321
+#endif
322
+
323
+#ifdef USE_DNS_CACHE_STATS
324
+#define USE_DNS_CACHE_STATS_STR ", USE_DNS_CACHE_STATS"
325
+#else
326
+#define USE_DNS_CACHE_STATS_STR ""