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,62 +0,0 @@
1
-/*
2
- * Portions Copyright (C) 2013 Crocodile RCS Ltd
3
- *
4
- * Based on "ser_stun.h". Copyright (C) 2001-2003 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
-
24
-#ifndef _STUN_H
25
-#define _STUN_H
26
-
27
-#include "ip_addr.h"
28
-
29
-/* type redefinition */
30
-typedef unsigned char UCHAR_T;
31
-typedef unsigned short USHORT_T;
32
-typedef unsigned int UINT_T;
33
-typedef unsigned long ULONG_T;
34
-
35
-#define MAGIC_COOKIE	0x2112A442
36
-#define TRANSACTION_ID	12
37
-
38
-struct transaction_id {
39
-        UINT_T magic_cookie;
40
-        UCHAR_T id[TRANSACTION_ID];
41
-};
42
-
43
-struct stun_hdr {
44
-        USHORT_T type;
45
-        USHORT_T len;
46
-        struct transaction_id id;
47
-};
48
-
49
-struct stun_attr {
50
-        USHORT_T type;
51
-        USHORT_T len;
52
-};
53
-
54
-typedef struct stun_event_info {
55
-	char *buf;
56
-	unsigned int len;
57
-	struct receive_info *rcv;
58
-} stun_event_info_t;
59
-
60
-int stun_process_msg(char* buf, unsigned int len, struct receive_info* ri);
61
-
62
-#endif /* _STUN_H */
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,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Portions Copyright (C) 2013 Crocodile RCS Ltd
5 3
  *
6 4
  * Based on "ser_stun.h". Copyright (C) 2001-2003 FhG Fokus
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
... ...
@@ -19,7 +19,7 @@
19 19
  *
20 20
  * You should have received a copy of the GNU General Public License 
21 21
  * along with this program; if not, write to the Free Software 
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 23
  *
24 24
  */
25 25
 
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
1 1
new file mode 100644
... ...
@@ -0,0 +1,64 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Portions Copyright (C) 2013 Crocodile RCS Ltd
5
+ *
6
+ * Based on "ser_stun.h". Copyright (C) 2001-2003 FhG Fokus
7
+ *
8
+ * This file is part of Kamailio, a free SIP server.
9
+ *
10
+ * Kamailio is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * Kamailio is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
+ * GNU General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU General Public License 
21
+ * along with this program; if not, write to the Free Software 
22
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ *
24
+ */
25
+
26
+#ifndef _STUN_H
27
+#define _STUN_H
28
+
29
+#include "ip_addr.h"
30
+
31
+/* type redefinition */
32
+typedef unsigned char UCHAR_T;
33
+typedef unsigned short USHORT_T;
34
+typedef unsigned int UINT_T;
35
+typedef unsigned long ULONG_T;
36
+
37
+#define MAGIC_COOKIE	0x2112A442
38
+#define TRANSACTION_ID	12
39
+
40
+struct transaction_id {
41
+        UINT_T magic_cookie;
42
+        UCHAR_T id[TRANSACTION_ID];
43
+};
44
+
45
+struct stun_hdr {
46
+        USHORT_T type;
47
+        USHORT_T len;
48
+        struct transaction_id id;
49
+};
50
+
51
+struct stun_attr {
52
+        USHORT_T type;
53
+        USHORT_T len;
54
+};
55
+
56
+typedef struct stun_event_info {
57
+	char *buf;
58
+	unsigned int len;
59
+	struct receive_info *rcv;
60
+} stun_event_info_t;
61
+
62
+int stun_process_msg(char* buf, unsigned int len, struct receive_info* ri);
63
+
64
+#endif /* _STUN_H */