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,65 +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
-#if 0
22
-
23
-#include "defs.h"
24
-
25
-
26
-#include "../../hash_func.h"
27
-#include "t_funcs.h"
28
-#include "../../dprint.h"
29
-#include "../../config.h"
30
-#include "../../parser/parser_f.h"
31
-#include "../../data_lump.h"
32
-#include "../../ut.h"
33
-#include "../../timer.h"
34
-#include "../../data_lump.h"
35
-
36
-#include "t_hooks.h"
37
-
38
-int _test_insert_to_reply( struct sip_msg *msg, char *str )
39
-{
40
-    struct lump* anchor;
41
-    char *buf;
42
-    int len;
43
-
44
-    len=strlen( str );
45
-    buf=pkg_malloc( len );
46
-    if (!buf) {
47
-        LOG(L_ERR, "_test_insert_to_reply: no mem\n");
48
-        return 0;
49
-    }
50
-    memcpy( buf, str, len );
51
-
52
-    anchor = anchor_lump(msg, msg->headers->name.s - msg->buf, 0 , 0);
53
-    if (anchor == NULL) {
54
-        LOG(L_ERR, "_test_insert_to_reply: anchor_lump failed\n");
55
-        return 0;
56
-    }
57
-    if (insert_new_lump_before(anchor,buf, len, 0)==0) {
58
-        LOG(L_ERR, "_test_insert_to_reply: insert_new_lump failed\n");
59
-        return 0;
60
-    }
61
-    return 1;
62
-}
63
-
64
-#endif
65
-
Browse code

tm Remove svn ID, remove history, rename "ser" to "kamailio"

Olle E. Johansson authored on 03/01/2015 15:48:29
Showing 1 changed files
... ...
@@ -1,22 +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
- * 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,
11
+ * Kamailio is distributed in the hope that it will be useful,
20 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 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
... ...
@@ -23,7 +23,7 @@
23 23
  *
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
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
27 27
  */
28 28
 
29 29
 #if 0
Browse code

modules/tm: add newline at end of file (test.c)

Ovidiu Sas authored on 27/11/2012 18:25:12
Showing 1 changed files
... ...
@@ -69,4 +69,5 @@ int _test_insert_to_reply( struct sip_msg *msg, char *str )
69 69
     return 1;
70 70
 }
71 71
 
72
-#endif
73 72
\ No newline at end of file
73
+#endif
74
+
Browse code

tm: deactivate compilation for not used test function _test_insert_to_reply

Henning Westerholt authored on 04/07/2011 22:21:39
Showing 1 changed files
... ...
@@ -26,6 +26,8 @@
26 26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27 27
  */
28 28
 
29
+#if 0
30
+
29 31
 #include "defs.h"
30 32
 
31 33
 
... ...
@@ -67,3 +69,4 @@ int _test_insert_to_reply( struct sip_msg *msg, char *str )
67 69
     return 1;
68 70
 }
69 71
 
72
+#endif
70 73
\ No newline at end of file
Browse code

- Spelling checked - READMEs updated

Jan Janak authored on 24/08/2004 08:58:23
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -61,7 +61,7 @@ int _test_insert_to_reply( struct sip_msg *msg, char *str )
61 61
         return 0;
62 62
     }
63 63
     if (insert_new_lump_before(anchor,buf, len, 0)==0) {
64
-        LOG(L_ERR, "_test_insert_to_reply: inser_new_lump failed\n");
64
+        LOG(L_ERR, "_test_insert_to_reply: insert_new_lump failed\n");
65 65
         return 0;
66 66
     }
67 67
     return 1;
Browse code

(hopefuly successful) merger of Uli's CANCEL/FIFO (thanks!), jiri's hash calculation for UAC transactions and current development branch

Jiri Kuthan authored on 11/02/2004 03:38:48
Showing 1 changed files
... ...
@@ -34,6 +34,7 @@
34 34
 #include "../../dprint.h"
35 35
 #include "../../config.h"
36 36
 #include "../../parser/parser_f.h"
37
+#include "../../data_lump.h"
37 38
 #include "../../ut.h"
38 39
 #include "../../timer.h"
39 40
 #include "../../data_lump.h"
Browse code

- added body_lumps (jan patches + some changes) - anchor_lump & del_lump compare the offset with msg->eoh and add the lump to add_rm or body_lumps, so make sure to parse_headers(HDR_EOH) if you lumps might modify the body. - changed all the {anchor,del}_lump calls

Andrei Pelinescu-Onciul authored on 20/10/2003 17:10:13
Showing 1 changed files
... ...
@@ -36,6 +36,7 @@
36 36
 #include "../../parser/parser_f.h"
37 37
 #include "../../ut.h"
38 38
 #include "../../timer.h"
39
+#include "../../data_lump.h"
39 40
 
40 41
 #include "t_hooks.h"
41 42
 
... ...
@@ -53,8 +54,7 @@ int _test_insert_to_reply( struct sip_msg *msg, char *str )
53 54
     }
54 55
     memcpy( buf, str, len );
55 56
 
56
-    anchor = anchor_lump(&msg->add_rm,
57
-        msg->headers->name.s - msg->buf, 0 , 0);
57
+    anchor = anchor_lump(msg, msg->headers->name.s - msg->buf, 0 , 0);
58 58
     if (anchor == NULL) {
59 59
         LOG(L_ERR, "_test_insert_to_reply: anchor_lump failed\n");
60 60
         return 0;
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
... ...
@@ -26,6 +26,7 @@
26 26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27 27
  */
28 28
 
29
+#include "defs.h"
29 30
 
30 31
 
31 32
 #include "../../hash_func.h"
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -1,9 +1,33 @@
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
 
6 29
 
30
+
7 31
 #include "../../hash_func.h"
8 32
 #include "t_funcs.h"
9 33
 #include "../../dprint.h"
Browse code

CVS substitutes introduced

Jiri Kuthan authored on 19/09/2002 11:51:26
Showing 1 changed files
... ...
@@ -1,3 +1,9 @@
1
+/* 
2
+ * $Id$
3
+ *
4
+ */
5
+
6
+
1 7
 #include "../../hash_func.h"
2 8
 #include "t_funcs.h"
3 9
 #include "../../dprint.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
... ...
@@ -1,4 +1,4 @@
1
-#include "hash_func.h"
1
+#include "../../hash_func.h"
2 2
 #include "t_funcs.h"
3 3
 #include "../../dprint.h"
4 4
 #include "../../config.h"
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
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+#include "hash_func.h"
2
+#include "t_funcs.h"
3
+#include "../../dprint.h"
4
+#include "../../config.h"
5
+#include "../../parser/parser_f.h"
6
+#include "../../ut.h"
7
+#include "../../timer.h"
8
+
9
+#include "t_hooks.h"
10
+
11
+int _test_insert_to_reply( struct sip_msg *msg, char *str )
12
+{
13
+    struct lump* anchor;
14
+    char *buf;
15
+    int len;
16
+
17
+    len=strlen( str );
18
+    buf=pkg_malloc( len );
19
+    if (!buf) {
20
+        LOG(L_ERR, "_test_insert_to_reply: no mem\n");
21
+        return 0;
22
+    }
23
+    memcpy( buf, str, len );
24
+
25
+    anchor = anchor_lump(&msg->add_rm,
26
+        msg->headers->name.s - msg->buf, 0 , 0);
27
+    if (anchor == NULL) {
28
+        LOG(L_ERR, "_test_insert_to_reply: anchor_lump failed\n");
29
+        return 0;
30
+    }
31
+    if (insert_new_lump_before(anchor,buf, len, 0)==0) {
32
+        LOG(L_ERR, "_test_insert_to_reply: inser_new_lump failed\n");
33
+        return 0;
34
+    }
35
+    return 1;
36
+}
37
+