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,43 +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
- * For a license to use the Kamailio software under conditions
12
- * other than those described here, or to purchase support for this
13
- * software, please contact iptel.org by e-mail at the following addresses:
14
- *    info@iptel.org
15
- *
16
- * Kamailio is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License 
22
- * along with this program; if not, write to the Free Software 
23
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24
- */
25
-
26
-
27
-#ifndef udp_server_h
28
-#define udp_server_h
29
-
30
-#include <sys/types.h>
31
-#include <sys/socket.h>
32
-#include "ip_addr.h"
33
-
34
-#define MAX_RECV_BUFFER_SIZE	256*1024
35
-#define BUFFER_INCREMENT	2048
36
-
37
-
38
-int udp_init(struct socket_info* si);
39
-int udp_send(struct dest_info* dst, char *buf, unsigned len);
40
-int udp_rcv_loop(void);
41
-
42
-
43
-#endif
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,21 +1,19 @@
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
- * For a license to use the ser software under conditions
11
+ * For a license to use the Kamailio software under conditions
14 12
  * other than those described here, or to purchase support for this
15 13
  * software, please contact iptel.org by e-mail at the following addresses:
16 14
  *    info@iptel.org
17 15
  *
18
- * ser is distributed in the hope that it will be useful,
16
+ * Kamailio is distributed in the hope that it will be useful,
19 17
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 18
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 19
  * 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
... ...
@@ -22,7 +22,7 @@
22 22
  *
23 23
  * You should have received a copy of the GNU General Public License 
24 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
25
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 26
  */
27 27
 
28 28
 
Browse code

core: Added void to declarations of functions with empty argument list

In C language, a declaration in the form int f(); is equivalent to int f(...);, thus being able to accept an indefinit number of parameters. With the -Wstrict-prototypes GCC options, these declarations are reported as "function declaration isn’t a prototype".
On some cases, this may trick the compiler into generating unoptimized code (like preparing to handle variadic argument list).
In all cases having a declaration int f() and a definition inf f(int) is missleading, even if standard compliant.
This is still Work in Progress. (maybe adding the -Wstrict-prototypes option to default is desireable)

Marius Zbihlei authored on 02/04/2012 14:19:17
Showing 1 changed files
... ...
@@ -39,7 +39,7 @@
39 39
 
40 40
 int udp_init(struct socket_info* si);
41 41
 int udp_send(struct dest_info* dst, char *buf, unsigned len);
42
-int udp_rcv_loop();
42
+int udp_rcv_loop(void);
43 43
 
44 44
 
45 45
 #endif
Browse code

- msg_send(), udp_send() and tcp_send() parameter list changed (now they use a struct dest_info to pack several of the old params)

Andrei Pelinescu-Onciul authored on 12/04/2006 18:04:23
Showing 1 changed files
... ...
@@ -38,8 +38,7 @@
38 38
 
39 39
 
40 40
 int udp_init(struct socket_info* si);
41
-int udp_send(struct socket_info* source,char *buf, unsigned len,
42
-				union sockaddr_union*  to);
41
+int udp_send(struct dest_info* dst, char *buf, unsigned len);
43 42
 int udp_rcv_loop();
44 43
 
45 44
 
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
  *
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 udp_server_h
6 30
 #define udp_server_h
7 31
 
Browse code

- sockaddr_union len fixes (needed for bind/sun) - new macro sockaddru_len(su) -> returns the len of a sockaddr_union (sizeof(sockaddr) or sizeof(sockaddr_in6)) - removed the len parameter in udp_send (not needed) and updated the modules using it (im, msilo, sl, tm)

Andrei Pelinescu-Onciul authored on 10/09/2002 13:49:23
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@
15 15
 
16 16
 int udp_init(struct socket_info* si);
17 17
 int udp_send(struct socket_info* source,char *buf, unsigned len,
18
-				union sockaddr_union*  to, unsigned tolen);
18
+				union sockaddr_union*  to);
19 19
 int udp_rcv_loop();
20 20
 
21 21
 
Browse code

- made ipv4<->ipv6 possible - added different port numbers (eg. ser -l foo -p 1234 -l bar -p 4321 ) - small signal fixes (sigterm to evrybody on exit, exit if 1 child dies a.s.o)

Andrei Pelinescu-Onciul authored on 26/05/2002 21:38:02
Showing 1 changed files
... ...
@@ -12,11 +12,10 @@
12 12
 #define MAX_RECV_BUFFER_SIZE	256*1024
13 13
 #define BUFFER_INCREMENT	2048
14 14
 
15
-extern int udp_sock;
16 15
 
17
-int udp_init(struct ip_addr* ip, unsigned short port);
18
-int udp_send(char *buf, unsigned len, union sockaddr_union*  to,
19
-				unsigned tolen);
16
+int udp_init(struct socket_info* si);
17
+int udp_send(struct socket_info* source,char *buf, unsigned len,
18
+				union sockaddr_union*  to, unsigned tolen);
20 19
 int udp_rcv_loop();
21 20
 
22 21
 
Browse code

- ipv6 support (-DUSE_IPV6) - changed all the sockaddr/ip addr structures - added gethostbyname/addr wrappers (resolve.h)

Andrei Pelinescu-Onciul authored on 26/05/2002 13:50:48
Showing 1 changed files
... ...
@@ -7,14 +7,16 @@
7 7
 
8 8
 #include <sys/types.h>
9 9
 #include <sys/socket.h>
10
+#include "ip_addr.h"
10 11
 
11 12
 #define MAX_RECV_BUFFER_SIZE	256*1024
12 13
 #define BUFFER_INCREMENT	2048
13 14
 
14 15
 extern int udp_sock;
15 16
 
16
-int udp_init(unsigned long ip, unsigned short port);
17
-int udp_send(char *buf, unsigned len, struct sockaddr*  to, unsigned tolen);
17
+int udp_init(struct ip_addr* ip, unsigned short port);
18
+int udp_send(char *buf, unsigned len, union sockaddr_union*  to,
19
+				unsigned tolen);
18 20
 int udp_rcv_loop();
19 21
 
20 22
 
Browse code

added seeking maximum receive buffer size

Jiri Kuthan authored on 12/11/2001 19:51:59
Showing 1 changed files
... ...
@@ -8,6 +8,9 @@
8 8
 #include <sys/types.h>
9 9
 #include <sys/socket.h>
10 10
 
11
+#define MAX_RECV_BUFFER_SIZE	256*1024
12
+#define BUFFER_INCREMENT	2048
13
+
11 14
 extern int udp_sock;
12 15
 
13 16
 int udp_init(unsigned long ip, unsigned short port);
Browse code

- small sun fixes

Andrei Pelinescu-Onciul authored on 21/09/2001 20:35:51
Showing 1 changed files
... ...
@@ -5,7 +5,8 @@
5 5
 #ifndef udp_server_h
6 6
 #define udp_server_h
7 7
 
8
-
8
+#include <sys/types.h>
9
+#include <sys/socket.h>
9 10
 
10 11
 extern int udp_sock;
11 12
 
Browse code

- finally a working version

Andrei Pelinescu-Onciul authored on 21/09/2001 20:24:13
Showing 1 changed files
... ...
@@ -10,6 +10,7 @@
10 10
 extern int udp_sock;
11 11
 
12 12
 int udp_init(unsigned long ip, unsigned short port);
13
+int udp_send(char *buf, unsigned len, struct sockaddr*  to, unsigned tolen);
13 14
 int udp_rcv_loop();
14 15
 
15 16
 
Browse code

- added cmd line options, help - added check for via (replies) and check for received (requests) - minor bugfixes

Andrei Pelinescu-Onciul authored on 06/09/2001 02:24:00
Showing 1 changed files
... ...
@@ -9,10 +9,6 @@
9 9
 
10 10
 extern int udp_sock;
11 11
 
12
-extern char* our_name;
13
-extern unsigned long  our_address;
14
-extern unsigned short our_port;
15
-
16 12
 int udp_init(unsigned long ip, unsigned short port);
17 13
 int udp_rcv_loop();
18 14
 
Browse code

First working release

Andrei Pelinescu-Onciul authored on 04/09/2001 20:55:41
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+/*
2
+ * $Id$
3
+ */
4
+
5
+#ifndef udp_server_h
6
+#define udp_server_h
7
+
8
+
9
+
10
+extern int udp_sock;
11
+
12
+extern char* our_name;
13
+extern unsigned long  our_address;
14
+extern unsigned short our_port;
15
+
16
+int udp_init(unsigned long ip, unsigned short port);
17
+int udp_rcv_loop();
18
+
19
+
20
+#endif