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,59 +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
-/*! \file
22
- * \brief Parser :: Parse CSEQ header
23
- *
24
- * \ingroup parser
25
- */
26
-
27
-
28
-
29
-#ifndef PARSE_CSEQ
30
-#define PARSE_CSEQ
31
-
32
-#include "../str.h"
33
-
34
-
35
-struct cseq_body{
36
-	int error;  /*!< Error code */
37
-	str number; /*!< CSeq number */
38
-	str method; /*!< Associated method */
39
-	unsigned int method_id; /*!< Associated method ID */
40
-};
41
-
42
-
43
-/*! \brief casting macro for accessing CSEQ body */
44
-#define get_cseq(p_msg) ((struct cseq_body*)(p_msg)->cseq->parsed)
45
-
46
-
47
-/*! \brief
48
- * Parse CSeq header field
49
- */
50
-char* parse_cseq(char* const buf, const char* const end, struct cseq_body* const cb);
51
-
52
-
53
-/*! \brief
54
- * Free all associated memory
55
- */
56
-void free_cseq(struct cseq_body* const cb);
57
-
58
-
59
-#endif
Browse code

core parser - remove svn ID, remove history, change "ser" => "Kamailio"

Olle E. Johansson authored on 18/01/2015 19:36:18
Showing 1 changed files
... ...
@@ -1,19 +1,14 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of ser, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6
- * ser is free software; you can redistribute it and/or modify
6
+ * Kamailio is free software; you can redistribute it and/or modify
7 7
  * it under the terms of the GNU General Public License as published by
8 8
  * the Free Software Foundation; either version 2 of the License, or
9 9
  * (at your option) any later version
10 10
  *
11
- * For a license to use the ser 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
- * ser is distributed in the hope that it will be useful,
11
+ * Kamailio is distributed in the hope that it will be useful,
17 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 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
... ...
@@ -20,7 +20,7 @@
20 20
  *
21 21
  * You should have received a copy of the GNU General Public License 
22 22
  * along with this program; if not, write to the Free Software 
23
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 24
  */
25 25
 
26 26
 /*! \file
Browse code

parser: remove old $Id$ docs header from subversion times, not usable anymore

Henning Westerholt authored on 05/07/2012 21:39:51
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2001-2003 FhG Fokus
5 3
  *
6 4
  * This file is part of ser, a free SIP server.
Browse code

parser: make get_hdr_field(..) and necessary called functions const-correct

Henning Westerholt authored on 05/07/2012 20:35:22
Showing 1 changed files
... ...
@@ -54,13 +54,13 @@ struct cseq_body{
54 54
 /*! \brief
55 55
  * Parse CSeq header field
56 56
  */
57
-char* parse_cseq(char *buf, char* end, struct cseq_body* cb);
57
+char* parse_cseq(char* const buf, const char* const end, struct cseq_body* const cb);
58 58
 
59 59
 
60 60
 /*! \brief
61 61
  * Free all associated memory
62 62
  */
63
-void free_cseq(struct cseq_body* cb);
63
+void free_cseq(struct cseq_body* const cb);
64 64
 
65 65
 
66 66
 #endif
Browse code

More parser/ doxygen changes

oej authored on 25/10/2009 17:26:46
Showing 1 changed files
... ...
@@ -25,6 +25,13 @@
25 25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 26
  */
27 27
 
28
+/*! \file
29
+ * \brief Parser :: Parse CSEQ header
30
+ *
31
+ * \ingroup parser
32
+ */
33
+
34
+
28 35
 
29 36
 #ifndef PARSE_CSEQ
30 37
 #define PARSE_CSEQ
... ...
@@ -33,24 +40,24 @@
33 40
 
34 41
 
35 42
 struct cseq_body{
36
-	int error;  /* Error code */
37
-	str number; /* CSeq number */
38
-	str method; /* Associated method */
39
-	unsigned int method_id; /* Associated method ID */
43
+	int error;  /*!< Error code */
44
+	str number; /*!< CSeq number */
45
+	str method; /*!< Associated method */
46
+	unsigned int method_id; /*!< Associated method ID */
40 47
 };
41 48
 
42 49
 
43
-/* casting macro for accessing CSEQ body */
50
+/*! \brief casting macro for accessing CSEQ body */
44 51
 #define get_cseq(p_msg) ((struct cseq_body*)(p_msg)->cseq->parsed)
45 52
 
46 53
 
47
-/*
54
+/*! \brief
48 55
  * Parse CSeq header field
49 56
  */
50 57
 char* parse_cseq(char *buf, char* end, struct cseq_body* cb);
51 58
 
52 59
 
53
-/*
60
+/*! \brief
54 61
  * Free all associated memory
55 62
  */
56 63
 void free_cseq(struct cseq_body* cb);
Browse code

Kamailio compatibility: Parse and store integer message id in cseq.

This patch modifies the CSeq header field parser. The new version of
the parser will also parse the method string and store an integer id
of the method string in the data structure representing cseq header
fields.

Jan Janak authored on 15/03/2009 20:17:30
Showing 1 changed files
... ...
@@ -36,6 +36,7 @@ struct cseq_body{
36 36
 	int error;  /* Error code */
37 37
 	str number; /* CSeq number */
38 38
 	str method; /* Associated method */
39
+	unsigned int method_id; /* Associated method ID */
39 40
 };
40 41
 
41 42
 
Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
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 PARSE_CSEQ
6 30
 #define PARSE_CSEQ
7 31
 
Browse code

parser directory cleanup

Jan Janak authored on 08/07/2002 17:14:39
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+/*
2
+ * $Id$
3
+ */
4
+
5
+#ifndef PARSE_CSEQ
6
+#define PARSE_CSEQ
7
+
8
+#include "../str.h"
9
+
10
+
11
+struct cseq_body{
12
+	int error;  /* Error code */
13
+	str number; /* CSeq number */
14
+	str method; /* Associated method */
15
+};
16
+
17
+
18
+/* casting macro for accessing CSEQ body */
19
+#define get_cseq(p_msg) ((struct cseq_body*)(p_msg)->cseq->parsed)
20
+
21
+
22
+/*
23
+ * Parse CSeq header field
24
+ */
25
+char* parse_cseq(char *buf, char* end, struct cseq_body* cb);
26
+
27
+
28
+/*
29
+ * Free all associated memory
30
+ */
31
+void free_cseq(struct cseq_body* cb);
32
+
33
+
34
+#endif