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,64 +0,0 @@
1
-/*
2
- * Allow, Allow-Events Header Field Name Parsing Macros
3
- *
4
- * 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
-/*! \file 
24
- * \brief Parser :: Allow, Allow-Events Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-#ifndef CASE_ALLO_H
30
-#define CASE_ALLO_H
31
-
32
-#define allow_ev_ents_CASE         \
33
-	switch(LOWER_DWORD(val)) { \
34
-	case _ents_:               \
35
-		p += 4;            \
36
-		hdr->type = HDR_ALLOWEVENTS_T; \
37
-		goto dc_end;       \
38
-	}
39
-
40
-
41
-
42
-#define allo_w_ev_CASE             \
43
-        switch(LOWER_DWORD(val)) { \
44
-        case _w_ev_:               \
45
-                p += 4;            \
46
-                val = READ(p);     \
47
-                allow_ev_ents_CASE;\
48
-                goto other;        \
49
-        }
50
-
51
-
52
-#define allo_CASE                  \
53
-    p += 4;                        \
54
-    val = READ(p);                 \
55
-    allo_w_ev_CASE;                \
56
-    if (LOWER_BYTE(*p) == 'w') {   \
57
-            hdr->type = HDR_ALLOW_T; \
58
-            p++;                   \
59
-            goto dc_end;           \
60
-    }                              \
61
-    goto other;
62
-
63
-
64
-#endif /* CASE_ALLO_H */
Browse code

parser Updates to header files, remove history etc

Olle E. Johansson authored on 16/01/2015 16:51:51
Showing 1 changed files
... ...
@@ -3,14 +3,14 @@
3 3
  *
4 4
  * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6
- * This file is part of SIP-router, a free SIP server.
6
+ * This file is part of Kamailio, a free SIP server.
7 7
  *
8
- * SIP-router is free software; you can redistribute it and/or modify
8
+ * Kamailio is free software; you can redistribute it and/or modify
9 9
  * it under the terms of the GNU General Public License as published by
10 10
  * the Free Software Foundation; either version 2 of the License, or
11 11
  * (at your option) any later version
12 12
  *
13
- * SIP-router is distributed in the hope that it will be useful,
13
+ * Kamailio is distributed in the hope that it will be useful,
14 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 16
  * 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
 /*! \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
  * Allow, Allow-Events Header Field Name Parsing Macros
5 3
  *
6 4
  * Copyright (C) 2001-2003 FhG Fokus
Browse code

Doxygen for the parser directory

There's still a lot of files untouched. Feel free to jump in and help!

oej authored on 25/10/2009 15:58:41
Showing 1 changed files
... ...
@@ -5,19 +5,14 @@
5 5
  *
6 6
  * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8
- * This file is part of ser, a free SIP server.
8
+ * This file is part of SIP-router, a free SIP server.
9 9
  *
10
- * ser is free software; you can redistribute it and/or modify
10
+ * SIP-router is free software; you can redistribute it and/or modify
11 11
  * it under the terms of the GNU General Public License as published by
12 12
  * the Free Software Foundation; either version 2 of the License, or
13 13
  * (at your option) any later version
14 14
  *
15
- * For a license to use the ser software under conditions
16
- * other than those described here, or to purchase support for this
17
- * software, please contact iptel.org by e-mail at the following addresses:
18
- *    info@iptel.org
19
- *
20
- * ser is distributed in the hope that it will be useful,
15
+ * SIP-router is distributed in the hope that it will be useful,
21 16
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 17
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 18
  * GNU General Public License for more details.
... ...
@@ -27,6 +22,12 @@
27 22
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 23
  */
29 24
 
25
+/*! \file 
26
+ * \brief Parser :: Allow, Allow-Events Header Field Name Parsing Macros
27
+ *
28
+ * \ingroup parser
29
+ */
30
+
30 31
 #ifndef CASE_ALLO_H
31 32
 #define CASE_ALLO_H
32 33
 
Browse code

- adjusted compact headers. There were missing compact equivalents for Subject, Refer-To and completely missing Session-Expires, Accept-Contact, etc. support. Currently I've implemented both compact header and case switches to assign enumeration type. No next parsing is processed, but probably will be done, good candidate e.g. Session-Expires.

Now e.g. textops hf_value correctly recognizes "Session-Expires" and "x" as equal headers.

Tomas Mandys authored on 18/06/2006 23:15:22
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1
-/* 
2
- * $Id$ 
1
+/*
2
+ * $Id$
3 3
  *
4
- * Allow Header Field Name Parsing Macros
4
+ * Allow, Allow-Events Header Field Name Parsing Macros
5 5
  *
6 6
  * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
... ...
@@ -22,21 +22,42 @@
22 22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 23
  * GNU General Public License for more details.
24 24
  *
25
- * You should have received a copy of the GNU General Public License 
26
- * along with this program; if not, write to the Free Software 
25
+ * You should have received a copy of the GNU General Public License
26
+ * along with this program; if not, write to the Free Software
27 27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 28
  */
29 29
 
30 30
 #ifndef CASE_ALLO_H
31 31
 #define CASE_ALLO_H
32 32
 
33
+#define allow_ev_ents_CASE         \
34
+	switch(LOWER_DWORD(val)) { \
35
+	case _ents_:               \
36
+		p += 4;            \
37
+		hdr->type = HDR_ALLOWEVENTS_T; \
38
+		goto dc_end;       \
39
+	}
40
+
41
+
42
+
43
+#define allo_w_ev_CASE             \
44
+        switch(LOWER_DWORD(val)) { \
45
+        case _w_ev_:               \
46
+                p += 4;            \
47
+                val = READ(p);     \
48
+                allow_ev_ents_CASE;\
49
+                goto other;        \
50
+        }
51
+
33 52
 
34 53
 #define allo_CASE                  \
35 54
     p += 4;                        \
55
+    val = READ(p);                 \
56
+    allo_w_ev_CASE;                \
36 57
     if (LOWER_BYTE(*p) == 'w') {   \
37 58
             hdr->type = HDR_ALLOW_T; \
38 59
             p++;                   \
39
-	    goto dc_end;           \
60
+            goto dc_end;           \
40 61
     }                              \
41 62
     goto other;
42 63
 
Browse code

- changed parse_headers api, HDR_xxx split into HDR_xxx_F (hdr_flags_t) and HDR_xxx_T (hdr_types_t), for more info read doc/parse_headers.txt. The header flags were extended top 64 bits. Be carefull not to mix types with flags, they won't work!

Andrei Pelinescu-Onciul authored on 23/02/2005 17:16:01
Showing 1 changed files
... ...
@@ -34,7 +34,7 @@
34 34
 #define allo_CASE                  \
35 35
     p += 4;                        \
36 36
     if (LOWER_BYTE(*p) == 'w') {   \
37
-            hdr->type = HDR_ALLOW; \
37
+            hdr->type = HDR_ALLOW_T; \
38 38
             p++;                   \
39 39
 	    goto dc_end;           \
40 40
     }                              \
Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Allow Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
Browse code

Faster parse_hname function, hash table removed, several minor optimizations

Jan Janak authored on 18/11/2002 19:08:16
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1
-/*
2
- * $Id$
1
+/* 
2
+ * $Id$ 
3 3
  *
4
- * Allow header field parser macros
4
+ * Allow Header Field Name Parsing Macros
5 5
  *
6 6
  * Copyright (C) 2001-2003 Fhg Fokus
7 7
  *
... ...
@@ -27,18 +27,17 @@
27 27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 28
  */
29 29
 
30
-
31 30
 #ifndef CASE_ALLO_H
32 31
 #define CASE_ALLO_H
33 32
 
34 33
 
35
-#define Allo_CASE                     \
36
-    p += 4;                           \
37
-    if ((*p == 'w') || (*p == 'W')) { \
38
-            hdr->type = HDR_ALLOW;    \
39
-            p++;                      \
40
-	    goto dc_end;              \
41
-    }                                 \
34
+#define allo_CASE                  \
35
+    p += 4;                        \
36
+    if (LOWER_BYTE(*p) == 'w') {   \
37
+            hdr->type = HDR_ALLOW; \
38
+            p++;                   \
39
+	    goto dc_end;           \
40
+    }                              \
42 41
     goto other;
43 42
 
44 43
 
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -2,8 +2,32 @@
2 2
  * $Id$
3 3
  *
4 4
  * Allow header field parser macros
5
+ *
6
+ * Copyright (C) 2001-2003 Fhg Fokus
7
+ *
8
+ * This file is part of ser, a free SIP server.
9
+ *
10
+ * ser 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
+ * For a license to use the ser software under conditions
16
+ * other than those described here, or to purchase support for this
17
+ * software, please contact iptel.org by e-mail at the following addresses:
18
+ *    info@iptel.org
19
+ *
20
+ * ser is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
+ * GNU General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU General Public License 
26
+ * along with this program; if not, write to the Free Software 
27
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
5 28
  */
6 29
 
30
+
7 31
 #ifndef CASE_ALLO_H
8 32
 #define CASE_ALLO_H
9 33
 
Browse code

*** empty log message ***

Jan Janak authored on 12/08/2002 12:04:50
Showing 1 changed files
... ...
@@ -18,4 +18,4 @@
18 18
     goto other;
19 19
 
20 20
 
21
-#endif
21
+#endif /* CASE_ALLO_H */
Browse code

New header field name parser

Jan Janak authored on 25/07/2002 12:28:26
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Allow header field parser macros
5
+ */
6
+
7
+#ifndef CASE_ALLO_H
8
+#define CASE_ALLO_H
9
+
10
+
11
+#define Allo_CASE                     \
12
+    p += 4;                           \
13
+    if ((*p == 'w') || (*p == 'W')) { \
14
+            hdr->type = HDR_ALLOW;    \
15
+            p++;                      \
16
+	    goto dc_end;              \
17
+    }                                 \
18
+    goto other;
19
+
20
+
21
+#endif