- 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)
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,71 +0,0 @@ |
1 |
-/* |
|
2 |
- * Copyright (C) 2001-2003 FhG Fokus |
|
3 |
- * |
|
4 |
- * This file is part of Kamailio, a free SIP server. |
|
5 |
- * |
|
6 |
- * Kamailio is free software; you can redistribute it and/or modify |
|
7 |
- * it under the terms of the GNU General Public License as published by |
|
8 |
- * the Free Software Foundation; either version 2 of the License, or |
|
9 |
- * (at your option) any later version |
|
10 |
- * |
|
11 |
- * Kamailio is distributed in the hope that it will be useful, |
|
12 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
- * GNU General Public License for more details. |
|
15 |
- * |
|
16 |
- * You should have received a copy of the GNU General Public License |
|
17 |
- * along with this program; if not, write to the Free Software |
|
18 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
19 |
- * |
|
20 |
- */ |
|
21 |
- |
|
22 |
-/*! |
|
23 |
- * \file |
|
24 |
- * \brief Kamailio core :: Data lumps |
|
25 |
- * \author bogdan, andrei |
|
26 |
- * \ingroup core |
|
27 |
- * Module: \ref core |
|
28 |
- */ |
|
29 |
- |
|
30 |
- |
|
31 |
- |
|
32 |
-#ifndef data_lump_rpl_h |
|
33 |
-#define data_lump_rpl_h |
|
34 |
- |
|
35 |
-#include "parser/msg_parser.h" |
|
36 |
- |
|
37 |
- |
|
38 |
-#define LUMP_RPL_HDR (1<<1) |
|
39 |
-#define LUMP_RPL_BODY (1<<2) |
|
40 |
-#define LUMP_RPL_NODUP (1<<3) |
|
41 |
-#define LUMP_RPL_NOFREE (1<<4) |
|
42 |
-#define LUMP_RPL_SHMEM (1<<5) |
|
43 |
- |
|
44 |
-struct lump_rpl |
|
45 |
-{ |
|
46 |
- str text; |
|
47 |
- int flags; |
|
48 |
- struct lump_rpl* next; |
|
49 |
-}; |
|
50 |
- |
|
51 |
-struct lump_rpl** add_lump_rpl2(struct sip_msg *, char *, int , int ); |
|
52 |
- |
|
53 |
- |
|
54 |
-/*! \brief compatibility wrapper for the old add_lump_rpl version */ |
|
55 |
-inline static struct lump_rpl* add_lump_rpl(struct sip_msg* msg, |
|
56 |
- char* s, int len , int flags ) |
|
57 |
-{ |
|
58 |
- struct lump_rpl** l; |
|
59 |
- |
|
60 |
- l=add_lump_rpl2(msg, s, len, flags); |
|
61 |
- return l?(*l):0; |
|
62 |
-} |
|
63 |
- |
|
64 |
- |
|
65 |
-void free_lump_rpl(struct lump_rpl* ); |
|
66 |
- |
|
67 |
-void unlink_lump_rpl(struct sip_msg *, struct lump_rpl* ); |
|
68 |
- |
|
69 |
-void del_nonshm_lump_rpl( struct lump_rpl ** ); |
|
70 |
- |
|
71 |
-#endif |
... | ... |
@@ -1,17 +1,14 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 |
- * |
|
5 | 2 |
* Copyright (C) 2001-2003 FhG Fokus |
6 | 3 |
* |
7 |
- * This file is part of ser, a free SIP server. |
|
4 |
+ * This file is part of Kamailio, a free SIP server. |
|
8 | 5 |
* |
9 |
- * ser is free software; you can redistribute it and/or modify |
|
6 |
+ * Kamailio is free software; you can redistribute it and/or modify |
|
10 | 7 |
* it under the terms of the GNU General Public License as published by |
11 | 8 |
* the Free Software Foundation; either version 2 of the License, or |
12 | 9 |
* (at your option) any later version |
13 | 10 |
* |
14 |
- * ser is distributed in the hope that it will be useful, |
|
11 |
+ * Kamailio is distributed in the hope that it will be useful, |
|
15 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 14 |
* GNU General Public License for more details. |
... | ... |
@@ -20,20 +17,12 @@ |
20 | 17 |
* along with this program; if not, write to the Free Software |
21 | 18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
22 | 19 |
* |
23 |
- * History: |
|
24 |
- * 2002-02-14 : created by bogdan |
|
25 |
- * 2003-09-11 : lump_rpl type added - LUMP_RPL_BODY & LUMP_RPL_HDR (bogdan) |
|
26 |
- * 2003-11-11 : build_lump_rpl merged into add_lump_rpl; type removed; |
|
27 |
- * flags LUMP_RPL_BODY, LUMP_RPL_NODUP and LUMP_RPL_NOFREE |
|
28 |
- * added (bogdan) |
|
29 |
- * 2006-10-16 add_lump_rpl2 added: same as the old add_lump_rpl, but |
|
30 |
- * returns a lump_rpl**, making a specific lump removal much |
|
31 |
- * more easy (andrei) |
|
32 | 20 |
*/ |
33 | 21 |
|
34 | 22 |
/*! |
35 | 23 |
* \file |
36 | 24 |
* \brief SIP-router core :: Data lumps |
25 |
+ * \author bogdan, andrei |
|
37 | 26 |
* \ingroup core |
38 | 27 |
* Module: \ref core |
39 | 28 |
*/ |
... | ... |
@@ -18,7 +18,7 @@ |
18 | 18 |
* |
19 | 19 |
* You should have received a copy of the GNU General Public License |
20 | 20 |
* along with this program; if not, write to the Free Software |
21 |
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
22 | 22 |
* |
23 | 23 |
* History: |
24 | 24 |
* 2002-02-14 : created by bogdan |
... | ... |
@@ -11,11 +11,6 @@ |
11 | 11 |
* the Free Software Foundation; either version 2 of the License, or |
12 | 12 |
* (at your option) any later version |
13 | 13 |
* |
14 |
- * For a license to use the ser software under conditions |
|
15 |
- * other than those described here, or to purchase support for this |
|
16 |
- * software, please contact iptel.org by e-mail at the following addresses: |
|
17 |
- * info@iptel.org |
|
18 |
- * |
|
19 | 14 |
* ser is distributed in the hope that it will be useful, |
20 | 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
... | ... |
@@ -36,6 +31,14 @@ |
36 | 31 |
* more easy (andrei) |
37 | 32 |
*/ |
38 | 33 |
|
34 |
+/*! |
|
35 |
+ * \file |
|
36 |
+ * \brief SIP-router core :: Data lumps |
|
37 |
+ * \ingroup core |
|
38 |
+ * Module: \ref core |
|
39 |
+ */ |
|
40 |
+ |
|
41 |
+ |
|
39 | 42 |
|
40 | 43 |
#ifndef data_lump_rpl_h |
41 | 44 |
#define data_lump_rpl_h |
... | ... |
@@ -59,7 +62,7 @@ struct lump_rpl |
59 | 62 |
struct lump_rpl** add_lump_rpl2(struct sip_msg *, char *, int , int ); |
60 | 63 |
|
61 | 64 |
|
62 |
-/* compatibility wrapper for the old add_lump_rpl version */ |
|
65 |
+/*! \brief compatibility wrapper for the old add_lump_rpl version */ |
|
63 | 66 |
inline static struct lump_rpl* add_lump_rpl(struct sip_msg* msg, |
64 | 67 |
char* s, int len , int flags ) |
65 | 68 |
{ |
... | ... |
@@ -31,6 +31,9 @@ |
31 | 31 |
* 2003-11-11 : build_lump_rpl merged into add_lump_rpl; type removed; |
32 | 32 |
* flags LUMP_RPL_BODY, LUMP_RPL_NODUP and LUMP_RPL_NOFREE |
33 | 33 |
* added (bogdan) |
34 |
+ * 2006-10-16 add_lump_rpl2 added: same as the old add_lump_rpl, but |
|
35 |
+ * returns a lump_rpl**, making a specific lump removal much |
|
36 |
+ * more easy (andrei) |
|
34 | 37 |
*/ |
35 | 38 |
|
36 | 39 |
|
... | ... |
@@ -53,7 +56,19 @@ struct lump_rpl |
53 | 56 |
struct lump_rpl* next; |
54 | 57 |
}; |
55 | 58 |
|
56 |
-struct lump_rpl* add_lump_rpl(struct sip_msg *, char *, int , int ); |
|
59 |
+struct lump_rpl** add_lump_rpl2(struct sip_msg *, char *, int , int ); |
|
60 |
+ |
|
61 |
+ |
|
62 |
+/* compatibility wrapper for the old add_lump_rpl version */ |
|
63 |
+inline static struct lump_rpl* add_lump_rpl(struct sip_msg* msg, |
|
64 |
+ char* s, int len , int flags ) |
|
65 |
+{ |
|
66 |
+ struct lump_rpl** l; |
|
67 |
+ |
|
68 |
+ l=add_lump_rpl2(msg, s, len, flags); |
|
69 |
+ return l?(*l):0; |
|
70 |
+} |
|
71 |
+ |
|
57 | 72 |
|
58 | 73 |
void free_lump_rpl(struct lump_rpl* ); |
59 | 74 |
|
... | ... |
@@ -44,6 +44,7 @@ |
44 | 44 |
#define LUMP_RPL_BODY (1<<2) |
45 | 45 |
#define LUMP_RPL_NODUP (1<<3) |
46 | 46 |
#define LUMP_RPL_NOFREE (1<<4) |
47 |
+#define LUMP_RPL_SHMEM (1<<5) |
|
47 | 48 |
|
48 | 49 |
struct lump_rpl |
49 | 50 |
{ |
... | ... |
@@ -58,4 +59,6 @@ void free_lump_rpl(struct lump_rpl* ); |
58 | 59 |
|
59 | 60 |
void unlink_lump_rpl(struct sip_msg *, struct lump_rpl* ); |
60 | 61 |
|
62 |
+void del_nonshm_lump_rpl( struct lump_rpl ** ); |
|
63 |
+ |
|
61 | 64 |
#endif |
... | ... |
@@ -24,6 +24,13 @@ |
24 | 24 |
* You should have received a copy of the GNU General Public License |
25 | 25 |
* along with this program; if not, write to the Free Software |
26 | 26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
27 |
+ * |
|
28 |
+ * History: |
|
29 |
+ * 2002-02-14 : created by bogdan |
|
30 |
+ * 2003-09-11 : lump_rpl type added - LUMP_RPL_BODY & LUMP_RPL_HDR (bogdan) |
|
31 |
+ * 2003-11-11 : build_lump_rpl merged into add_lump_rpl; type removed; |
|
32 |
+ * flags LUMP_RPL_BODY, LUMP_RPL_NODUP and LUMP_RPL_NOFREE |
|
33 |
+ * added (bogdan) |
|
27 | 34 |
*/ |
28 | 35 |
|
29 | 36 |
|
... | ... |
@@ -33,19 +40,19 @@ |
33 | 40 |
#include "parser/msg_parser.h" |
34 | 41 |
|
35 | 42 |
|
36 |
-#define LUMP_RPL_HDR 1 |
|
37 |
-#define LUMP_RPL_BODY 2 |
|
43 |
+#define LUMP_RPL_HDR (1<<1) |
|
44 |
+#define LUMP_RPL_BODY (1<<2) |
|
45 |
+#define LUMP_RPL_NODUP (1<<3) |
|
46 |
+#define LUMP_RPL_NOFREE (1<<4) |
|
38 | 47 |
|
39 | 48 |
struct lump_rpl |
40 | 49 |
{ |
41 | 50 |
str text; |
42 |
- int type; |
|
51 |
+ int flags; |
|
43 | 52 |
struct lump_rpl* next; |
44 | 53 |
}; |
45 | 54 |
|
46 |
-struct lump_rpl* build_lump_rpl( char* , int , int ); |
|
47 |
- |
|
48 |
-int add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
55 |
+struct lump_rpl* add_lump_rpl(struct sip_msg *, char *, int , int ); |
|
49 | 56 |
|
50 | 57 |
void free_lump_rpl(struct lump_rpl* ); |
51 | 58 |
|
... | ... |
@@ -33,16 +33,22 @@ |
33 | 33 |
#include "parser/msg_parser.h" |
34 | 34 |
|
35 | 35 |
|
36 |
+#define LUMP_RPL_HDR 1 |
|
37 |
+#define LUMP_RPL_BODY 2 |
|
38 |
+ |
|
36 | 39 |
struct lump_rpl |
37 | 40 |
{ |
38 | 41 |
str text; |
42 |
+ int type; |
|
39 | 43 |
struct lump_rpl* next; |
40 | 44 |
}; |
41 | 45 |
|
42 |
-struct lump_rpl* build_lump_rpl( char* , int ); |
|
46 |
+struct lump_rpl* build_lump_rpl( char* , int , int ); |
|
43 | 47 |
|
44 |
-void add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
48 |
+int add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
45 | 49 |
|
46 | 50 |
void free_lump_rpl(struct lump_rpl* ); |
47 | 51 |
|
52 |
+void unlink_lump_rpl(struct sip_msg *, struct lump_rpl* ); |
|
53 |
+ |
|
48 | 54 |
#endif |
... | ... |
@@ -1,8 +1,32 @@ |
1 | 1 |
/* |
2 | 2 |
* $Id$ |
3 | 3 |
* |
4 |
+ * |
|
5 |
+ * Copyright (C) 2001-2003 Fhg Fokus |
|
6 |
+ * |
|
7 |
+ * This file is part of ser, a free SIP server. |
|
8 |
+ * |
|
9 |
+ * ser is free software; you can redistribute it and/or modify |
|
10 |
+ * it under the terms of the GNU General Public License as published by |
|
11 |
+ * the Free Software Foundation; either version 2 of the License, or |
|
12 |
+ * (at your option) any later version |
|
13 |
+ * |
|
14 |
+ * For a license to use the ser software under conditions |
|
15 |
+ * other than those described here, or to purchase support for this |
|
16 |
+ * software, please contact iptel.org by e-mail at the following addresses: |
|
17 |
+ * info@iptel.org |
|
18 |
+ * |
|
19 |
+ * ser is distributed in the hope that it will be useful, |
|
20 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
+ * GNU General Public License for more details. |
|
23 |
+ * |
|
24 |
+ * You should have received a copy of the GNU General Public License |
|
25 |
+ * along with this program; if not, write to the Free Software |
|
26 |
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
4 | 27 |
*/ |
5 | 28 |
|
29 |
+ |
|
6 | 30 |
#ifndef data_lump_rpl_h |
7 | 31 |
#define data_lump_rpl_h |
8 | 32 |
|
... | ... |
@@ -17,8 +17,8 @@ struct lump_rpl |
17 | 17 |
|
18 | 18 |
struct lump_rpl* build_lump_rpl( char* , int ); |
19 | 19 |
|
20 |
-int add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
20 |
+void add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
21 | 21 |
|
22 |
-int free_lump_rpl(struct lump_rpl* ); |
|
22 |
+void free_lump_rpl(struct lump_rpl* ); |
|
23 | 23 |
|
24 | 24 |
#endif |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ */ |
|
5 |
+ |
|
6 |
+#ifndef data_lump_rpl_h |
|
7 |
+#define data_lump_rpl_h |
|
8 |
+ |
|
9 |
+#include "msg_parser.h" |
|
10 |
+ |
|
11 |
+ |
|
12 |
+struct lump_rpl |
|
13 |
+{ |
|
14 |
+ str text; |
|
15 |
+ struct lump_rpl* next; |
|
16 |
+}; |
|
17 |
+ |
|
18 |
+struct lump_rpl* build_lump_rpl( char* , int ); |
|
19 |
+ |
|
20 |
+int add_lump_rpl(struct sip_msg * , struct lump_rpl* ); |
|
21 |
+ |
|
22 |
+int free_lump_rpl(struct lump_rpl* ); |
|
23 |
+ |
|
24 |
+#endif |