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,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
Browse code

core : Update include files - delete IDs, update doxygen, delete history

Olle E. Johansson authored on 03/01/2015 10:55:48
Showing 1 changed files
... ...
@@ -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.
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
... ...
@@ -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
 
Browse code

Documentation and doxygen updates

oej authored on 25/10/2009 19:49:25
Showing 1 changed files
... ...
@@ -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
Browse code

- dns cache support (ser will cache both positive and negative responses if turned on, see doc/dns.txt for more details & config options) - dns failover support: when a name resolves to more then 1 ip (either multiple A or AAAA records or multiple SRVs) and sending to the first ip fails, ser will retry with the others. By default is off. See doc/dns.txt for more details/config options a.s.o. - destination blacklist: when sending to some destination (defined by ip:port and protocol) fails, ser will temporarily add this destination in a blacklist giving future sends the opportunity of immediately failing. Destination are also added to the blacklist on tm invite timeouts (when no response is received in the fr_timer interval). By default is off, see doc/dst_blacklist.txt form more details/config options. - small makefile fixes (in mode=debug) - resolver get_record api changes (updated enum)

WARNING: there are a lot of changes in tm

Andrei Pelinescu-Onciul authored on 15/09/2006 10:37:44
Showing 1 changed files
... ...
@@ -72,6 +72,8 @@
72 72
 
73 73
 /* error in server */
74 74
 #define E_BAD_SERVER	  -500
75
+#define E_ADM_PROHIBITED  -510
76
+#define E_BLACKLISTED	  -520
75 77
 
76 78
 
77 79
 #define MAX_REASON_LEN	128
Browse code

- more dest_info conversions: - forward_request takes now a dest_info parameter - various something2dst conversions functions - got rid of the temprary mk_proxy when forwarding after the uri - updated all the affected modules

WARNING: not tested, use with care

Andrei Pelinescu-Onciul authored on 18/04/2006 19:56:48
Showing 1 changed files
... ...
@@ -29,6 +29,7 @@
29 29
 #ifndef error_h
30 30
 #define error_h
31 31
 
32
+#define E_OK           0
32 33
 #define E_UNSPEC      -1
33 34
 #define E_OUT_OF_MEM  -2
34 35
 #define E_BAD_RE      -3
Browse code

- added missing E_CANCELED def

Andrei Pelinescu-Onciul authored on 30/01/2006 08:51:56
Showing 1 changed files
... ...
@@ -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
 
Browse code

- Spelling checked - READMEs updated

Jan Janak authored on 24/08/2004 08:45:09
Showing 1 changed files
... ...
@@ -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 */
Browse code

str2q implemented append_branch("sip:a@iptel.org", "0.23") implemented append_branch("sip:a@iptel.org", 230) removed (it was not very intuitive)

Jan Janak authored on 26/04/2004 17:11:55
Showing 1 changed files
... ...
@@ -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
Browse code

- forward uri now works for secure uris (sips:blbalba) - parse_uri now parses sips uris; lr=something, r2|r2=something added to the parse_uri recognized parameters - resolver now sets the default port properly (5061 for tls, 5060 for others)

Andrei Pelinescu-Onciul authored on 03/07/2003 15:41:07
Showing 1 changed files
... ...
@@ -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
Browse code

- mode=debug => -DEXTRA_DEBUG - a lot of the tcp debugging messages are displayed now only if EXTRA_DEBUG is defined - parse_uri sets now ser_error - forward(uri:host,...) will use the protocol in the uri

Andrei Pelinescu-Onciul authored on 11/04/2003 16:58:29
Showing 1 changed files
... ...
@@ -55,6 +55,8 @@
55 55
 #define E_BAD_ADDRESS -478
56 56
 /* unparseable URI */
57 57
 #define E_BAD_URI 	  -479
58
+/* bad protocol, like */
59
+#define E_BAD_PROTO	  -480
58 60
 /* misformated request */
59 61
 #define E_BAD_REQ	  -400
60 62
 
Browse code

preliminary support for FIFO/t_uac added -- compiles, but not completed yet

Jiri Kuthan authored on 21/01/2003 13:53:48
Showing 1 changed files
... ...
@@ -47,6 +47,8 @@
47 47
 /* too many branches demanded */
48 48
 #define E_TOO_MANY_BRANCHES -12
49 49
 #define E_BAD_TO	-13
50
+/* invalid params */
51
+#define E_INVALID_PARAMS -14
50 52
 
51 53
 #define E_SEND		  -477
52 54
 /* unresolveable next-hop address */
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -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
 
Browse code

added BAD_TO

Jiri Kuthan authored on 18/08/2002 20:56:28
Showing 1 changed files
... ...
@@ -22,6 +22,7 @@
22 22
 #define E_EXEC			-11
23 23
 /* too many branches demanded */
24 24
 #define E_TOO_MANY_BRANCHES -12
25
+#define E_BAD_TO	-13
25 26
 
26 27
 #define E_SEND		  -477
27 28
 /* unresolveable next-hop address */
Browse code

minor delayed clean-ups

Jiri Kuthan authored on 16/08/2002 13:26:15
Showing 1 changed files
... ...
@@ -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"
Browse code

bignag change -- lot of things primarily added in relationship with refurbushing TM; see [sr] archive (2002-08-14) -- "ser update" and "TM update" for a long list of details

Jiri Kuthan authored on 15/08/2002 08:13:29
Showing 1 changed files
... ...
@@ -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
Browse code

ser_error processing, ipv6-ization of TM, new TM callbacks; not stable yet (serial forking is screwed up)

Jiri Kuthan authored on 31/05/2002 01:59:06
Showing 1 changed files
... ...
@@ -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
Browse code

- finally a working version

Andrei Pelinescu-Onciul authored on 21/09/2001 20:24:13
Showing 1 changed files
... ...
@@ -5,10 +5,12 @@
5 5
 #ifndef error_h
6 6
 #define error_h
7 7
 
8
+#define E_UNSPEC      -1
8 9
 #define E_OUT_OF_MEM  -2
9 10
 #define E_BAD_RE      -3
10 11
 #define E_BAD_ADDRESS -4
11 12
 #define E_BUG         -5
13
+#define E_CFG         -6
12 14
 
13 15
 
14 16
 #endif
Browse code

- still to do action,c

Andrei Pelinescu-Onciul authored on 20/09/2001 17:17:26
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+/*
2
+ * $Id$
3
+ */
4
+
5
+#ifndef error_h
6
+#define error_h
7
+
8
+#define E_OUT_OF_MEM  -2
9
+#define E_BAD_RE      -3
10
+#define E_BAD_ADDRESS -4
11
+#define E_BUG         -5
12
+
13
+
14
+#endif