- 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,92 +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 |
-#ifndef error_h |
|
23 |
-#define error_h |
|
24 |
- |
|
25 |
-#define E_OK 0 |
|
26 |
-#define E_UNSPEC -1 |
|
27 |
-#define E_OUT_OF_MEM -2 |
|
28 |
-#define E_BAD_RE -3 |
|
29 |
-/* #define E_BAD_ADDRESS -4 */ |
|
30 |
-#define E_BUG -5 |
|
31 |
-#define E_CFG -6 |
|
32 |
-#define E_NO_SOCKET -7 |
|
33 |
-/* unresolvable topmost Via */ |
|
34 |
-#define E_BAD_VIA -8 |
|
35 |
-/* incomplete transaction tuple */ |
|
36 |
-#define E_BAD_TUPEL -9 |
|
37 |
-/* script programming error */ |
|
38 |
-#define E_SCRIPT -10 |
|
39 |
-/* error in execution of external tools */ |
|
40 |
-#define E_EXEC -11 |
|
41 |
-/* too many branches demanded */ |
|
42 |
-#define E_TOO_MANY_BRANCHES -12 |
|
43 |
-#define E_BAD_TO -13 |
|
44 |
-/* invalid params */ |
|
45 |
-#define E_INVALID_PARAMS -14 |
|
46 |
- |
|
47 |
-#define E_Q_INV_CHAR -15 /* Invalid character in q */ |
|
48 |
-#define E_Q_EMPTY -16 /* Empty q */ |
|
49 |
-#define E_Q_TOO_BIG -17 /* q too big (> 1) */ |
|
50 |
-#define E_Q_DEC_MISSING -18 /* Decimal part missing */ |
|
51 |
- |
|
52 |
- |
|
53 |
- |
|
54 |
-#define E_SEND -477 |
|
55 |
-/* unresolvable next-hop address */ |
|
56 |
-#define E_BAD_ADDRESS -478 |
|
57 |
-/* unparseable URI */ |
|
58 |
-#define E_BAD_URI -479 |
|
59 |
-/* bad protocol, like */ |
|
60 |
-#define E_BAD_PROTO -480 |
|
61 |
-/* malformed request */ |
|
62 |
-#define E_BAD_REQ -400 |
|
63 |
- |
|
64 |
-#define E_CANCELED -487 /* transaction already canceled */ |
|
65 |
- |
|
66 |
-/* error in server */ |
|
67 |
-#define E_BAD_SERVER -500 |
|
68 |
-#define E_ADM_PROHIBITED -510 |
|
69 |
-#define E_BLACKLISTED -520 |
|
70 |
- |
|
71 |
- |
|
72 |
-#define MAX_REASON_LEN 128 |
|
73 |
- |
|
74 |
-#include "str.h" |
|
75 |
- |
|
76 |
-/* processing status of the last command */ |
|
77 |
-extern int ser_error; |
|
78 |
-extern int prev_ser_error; |
|
79 |
- |
|
80 |
-struct sip_msg; |
|
81 |
- |
|
82 |
-/* ser error -> SIP error */ |
|
83 |
-int err2reason_phrase( int ser_error, int *sip_error, |
|
84 |
- char *phrase, int etl, char *signature ); |
|
85 |
- |
|
86 |
-/* SIP error core -> SIP text */ |
|
87 |
-char *error_text( int code ); |
|
88 |
- |
|
89 |
-/* return pkg_malloc-ed reply status in status->s */ |
|
90 |
-void get_reply_status( str *status, struct sip_msg *reply, int code ); |
|
91 |
- |
|
92 |
-#endif |
... | ... |
@@ -1,16 +1,14 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 | 2 |
* Copyright (C) 2001-2003 FhG Fokus |
5 | 3 |
* |
6 |
- * This file is part of ser, a free SIP server. |
|
4 |
+ * This file is part of Kamailio, a free SIP server. |
|
7 | 5 |
* |
8 |
- * ser is free software; you can redistribute it and/or modify |
|
6 |
+ * Kamailio is free software; you can redistribute it and/or modify |
|
9 | 7 |
* it under the terms of the GNU General Public License as published by |
10 | 8 |
* the Free Software Foundation; either version 2 of the License, or |
11 | 9 |
* (at your option) any later version |
12 | 10 |
* |
13 |
- * ser is distributed in the hope that it will be useful, |
|
11 |
+ * Kamailio is distributed in the hope that it will be useful, |
|
14 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | 14 |
* GNU General Public License for more details. |
... | ... |
@@ -17,7 +17,7 @@ |
17 | 17 |
* |
18 | 18 |
* You should have received a copy of the GNU General Public License |
19 | 19 |
* along with this program; if not, write to the Free Software |
20 |
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
21 | 21 |
*/ |
22 | 22 |
|
23 | 23 |
|
... | ... |
@@ -10,11 +10,6 @@ |
10 | 10 |
* the Free Software Foundation; either version 2 of the License, or |
11 | 11 |
* (at your option) any later version |
12 | 12 |
* |
13 |
- * For a license to use the ser software under conditions |
|
14 |
- * other than those described here, or to purchase support for this |
|
15 |
- * software, please contact iptel.org by e-mail at the following addresses: |
|
16 |
- * info@iptel.org |
|
17 |
- * |
|
18 | 13 |
* ser is distributed in the hope that it will be useful, |
19 | 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
WARNING: there are a lot of changes in tm
WARNING: not tested, use with care
... | ... |
@@ -56,6 +56,7 @@ |
56 | 56 |
#define E_Q_DEC_MISSING -18 /* Decimal part missing */ |
57 | 57 |
|
58 | 58 |
|
59 |
+ |
|
59 | 60 |
#define E_SEND -477 |
60 | 61 |
/* unresolvable next-hop address */ |
61 | 62 |
#define E_BAD_ADDRESS -478 |
... | ... |
@@ -66,6 +67,8 @@ |
66 | 67 |
/* malformed request */ |
67 | 68 |
#define E_BAD_REQ -400 |
68 | 69 |
|
70 |
+#define E_CANCELED -487 /* transaction already canceled */ |
|
71 |
+ |
|
69 | 72 |
/* error in server */ |
70 | 73 |
#define E_BAD_SERVER -500 |
71 | 74 |
|
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
/* |
2 | 2 |
* $Id$ |
3 | 3 |
* |
4 |
- * Copyright (C) 2001-2003 Fhg Fokus |
|
4 |
+ * Copyright (C) 2001-2003 FhG Fokus |
|
5 | 5 |
* |
6 | 6 |
* This file is part of ser, a free SIP server. |
7 | 7 |
* |
... | ... |
@@ -36,13 +36,13 @@ |
36 | 36 |
#define E_BUG -5 |
37 | 37 |
#define E_CFG -6 |
38 | 38 |
#define E_NO_SOCKET -7 |
39 |
-/* unresolveable topmost Via */ |
|
39 |
+/* unresolvable topmost Via */ |
|
40 | 40 |
#define E_BAD_VIA -8 |
41 |
-/* incomplete transaction tupel */ |
|
41 |
+/* incomplete transaction tuple */ |
|
42 | 42 |
#define E_BAD_TUPEL -9 |
43 | 43 |
/* script programming error */ |
44 | 44 |
#define E_SCRIPT -10 |
45 |
-/* error in excecution of external tools */ |
|
45 |
+/* error in execution of external tools */ |
|
46 | 46 |
#define E_EXEC -11 |
47 | 47 |
/* too many branches demanded */ |
48 | 48 |
#define E_TOO_MANY_BRANCHES -12 |
... | ... |
@@ -57,13 +57,13 @@ |
57 | 57 |
|
58 | 58 |
|
59 | 59 |
#define E_SEND -477 |
60 |
-/* unresolveable next-hop address */ |
|
60 |
+/* unresolvable next-hop address */ |
|
61 | 61 |
#define E_BAD_ADDRESS -478 |
62 | 62 |
/* unparseable URI */ |
63 | 63 |
#define E_BAD_URI -479 |
64 | 64 |
/* bad protocol, like */ |
65 | 65 |
#define E_BAD_PROTO -480 |
66 |
-/* misformated request */ |
|
66 |
+/* malformed request */ |
|
67 | 67 |
#define E_BAD_REQ -400 |
68 | 68 |
|
69 | 69 |
/* error in server */ |
... | ... |
@@ -50,6 +50,12 @@ |
50 | 50 |
/* invalid params */ |
51 | 51 |
#define E_INVALID_PARAMS -14 |
52 | 52 |
|
53 |
+#define E_Q_INV_CHAR -15 /* Invalid character in q */ |
|
54 |
+#define E_Q_EMPTY -16 /* Empty q */ |
|
55 |
+#define E_Q_TOO_BIG -17 /* q too big (> 1) */ |
|
56 |
+#define E_Q_DEC_MISSING -18 /* Decimal part missing */ |
|
57 |
+ |
|
58 |
+ |
|
53 | 59 |
#define E_SEND -477 |
54 | 60 |
/* unresolveable next-hop address */ |
55 | 61 |
#define E_BAD_ADDRESS -478 |
... | ... |
@@ -42,7 +42,7 @@ |
42 | 42 |
#define E_BAD_TUPEL -9 |
43 | 43 |
/* script programming error */ |
44 | 44 |
#define E_SCRIPT -10 |
45 |
-/* error in exceution of external tools */ |
|
45 |
+/* error in excecution of external tools */ |
|
46 | 46 |
#define E_EXEC -11 |
47 | 47 |
/* too many branches demanded */ |
48 | 48 |
#define E_TOO_MANY_BRANCHES -12 |
... | ... |
@@ -1,7 +1,31 @@ |
1 | 1 |
/* |
2 | 2 |
* $Id$ |
3 |
+ * |
|
4 |
+ * Copyright (C) 2001-2003 Fhg Fokus |
|
5 |
+ * |
|
6 |
+ * This file is part of ser, a free SIP server. |
|
7 |
+ * |
|
8 |
+ * ser 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 |
+ * For a license to use the ser software under conditions |
|
14 |
+ * other than those described here, or to purchase support for this |
|
15 |
+ * software, please contact iptel.org by e-mail at the following addresses: |
|
16 |
+ * info@iptel.org |
|
17 |
+ * |
|
18 |
+ * ser is distributed in the hope that it will be useful, |
|
19 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
+ * GNU General Public License for more details. |
|
22 |
+ * |
|
23 |
+ * You should have received a copy of the GNU General Public License |
|
24 |
+ * along with this program; if not, write to the Free Software |
|
25 |
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
3 | 26 |
*/ |
4 | 27 |
|
28 |
+ |
|
5 | 29 |
#ifndef error_h |
6 | 30 |
#define error_h |
7 | 31 |
|
... | ... |
@@ -18,6 +18,10 @@ |
18 | 18 |
#define E_BAD_TUPEL -9 |
19 | 19 |
/* script programming error */ |
20 | 20 |
#define E_SCRIPT -10 |
21 |
+/* error in exceution of external tools */ |
|
22 |
+#define E_EXEC -11 |
|
23 |
+/* too many branches demanded */ |
|
24 |
+#define E_TOO_MANY_BRANCHES -12 |
|
21 | 25 |
|
22 | 26 |
#define E_SEND -477 |
23 | 27 |
/* unresolveable next-hop address */ |
... | ... |
@@ -27,6 +31,10 @@ |
27 | 31 |
/* misformated request */ |
28 | 32 |
#define E_BAD_REQ -400 |
29 | 33 |
|
34 |
+/* error in server */ |
|
35 |
+#define E_BAD_SERVER -500 |
|
36 |
+ |
|
37 |
+ |
|
30 | 38 |
#define MAX_REASON_LEN 128 |
31 | 39 |
|
32 | 40 |
#include "str.h" |
... | ... |
@@ -12,6 +12,12 @@ |
12 | 12 |
#define E_BUG -5 |
13 | 13 |
#define E_CFG -6 |
14 | 14 |
#define E_NO_SOCKET -7 |
15 |
+/* unresolveable topmost Via */ |
|
16 |
+#define E_BAD_VIA -8 |
|
17 |
+/* incomplete transaction tupel */ |
|
18 |
+#define E_BAD_TUPEL -9 |
|
19 |
+/* script programming error */ |
|
20 |
+#define E_SCRIPT -10 |
|
15 | 21 |
|
16 | 22 |
#define E_SEND -477 |
17 | 23 |
/* unresolveable next-hop address */ |
... | ... |
@@ -23,12 +29,22 @@ |
23 | 29 |
|
24 | 30 |
#define MAX_REASON_LEN 128 |
25 | 31 |
|
32 |
+#include "str.h" |
|
33 |
+ |
|
26 | 34 |
/* processing status of the last command */ |
27 | 35 |
extern int ser_error; |
28 | 36 |
extern int prev_ser_error; |
29 | 37 |
|
38 |
+struct sip_msg; |
|
39 |
+ |
|
40 |
+/* ser error -> SIP error */ |
|
30 | 41 |
int err2reason_phrase( int ser_error, int *sip_error, |
31 | 42 |
char *phrase, int etl, char *signature ); |
32 | 43 |
|
44 |
+/* SIP error core -> SIP text */ |
|
45 |
+char *error_text( int code ); |
|
46 |
+ |
|
47 |
+/* return pkg_malloc-ed reply status in status->s */ |
|
48 |
+void get_reply_status( str *status, struct sip_msg *reply, int code ); |
|
33 | 49 |
|
34 | 50 |
#endif |
... | ... |
@@ -8,9 +8,27 @@ |
8 | 8 |
#define E_UNSPEC -1 |
9 | 9 |
#define E_OUT_OF_MEM -2 |
10 | 10 |
#define E_BAD_RE -3 |
11 |
-#define E_BAD_ADDRESS -4 |
|
11 |
+/* #define E_BAD_ADDRESS -4 */ |
|
12 | 12 |
#define E_BUG -5 |
13 | 13 |
#define E_CFG -6 |
14 |
+#define E_NO_SOCKET -7 |
|
15 |
+ |
|
16 |
+#define E_SEND -477 |
|
17 |
+/* unresolveable next-hop address */ |
|
18 |
+#define E_BAD_ADDRESS -478 |
|
19 |
+/* unparseable URI */ |
|
20 |
+#define E_BAD_URI -479 |
|
21 |
+/* misformated request */ |
|
22 |
+#define E_BAD_REQ -400 |
|
23 |
+ |
|
24 |
+#define MAX_REASON_LEN 128 |
|
25 |
+ |
|
26 |
+/* processing status of the last command */ |
|
27 |
+extern int ser_error; |
|
28 |
+extern int prev_ser_error; |
|
29 |
+ |
|
30 |
+int err2reason_phrase( int ser_error, int *sip_error, |
|
31 |
+ char *phrase, int etl, char *signature ); |
|
14 | 32 |
|
15 | 33 |
|
16 | 34 |
#endif |