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,55 +0,0 @@
1
-/* 
2
- * Copyright (C) 2005 iptelorg GmbH
3
- *
4
- * This file is part of ser, a free SIP server.
5
- *
6
- * ser 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 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,
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
-#ifndef __RESOURCE_LIST_H
27
-#define __RESOURCE_LIST_H
28
-
29
-#include <xcap/rls_services_parser.h>
30
-#include <xcap/xcap_client.h>
31
-#include <cds/sstr.h>
32
-/* #include <cds/ptr_vector.h> */
33
-
34
-/* Functions for downloading the service documents with analyzis
35
- * and "flatting" - see draft-ietf-simple-xcap-list-usage */
36
-
37
-typedef struct _flat_list_t {
38
-	struct _flat_list_t *next;
39
-	char *uri;
40
-	SEQUENCE(display_name_t) names;
41
-} flat_list_t;
42
-
43
-char *xcap_uri_for_rls_resource(const str_t *xcap_root, const str_t *uri);
44
-void canonicalize_uri(const str_t *uri, str_t *dst);
45
-int get_rls(const str_t *uri, xcap_query_params_t *xcap_params, 
46
-		const str_t *package, flat_list_t **dst);
47
-int get_rls_from_full_doc(const str_t *uri, 
48
-		/* const str_t *filename,  */
49
-		xcap_query_params_t *xcap_params, 
50
-		const str_t *package, flat_list_t **dst);
51
-int get_resource_list_from_full_doc(const str_t *xcap_root, const str_t *user, xcap_query_params_t *xcap_params, const char *list_name, flat_list_t **dst);
52
-/* TODO: int get_resource_list(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const str_t *list_name, flat_list_t **dst); */
53
-void free_flat_list(flat_list_t *list);
54
-
55
-#endif
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
 #ifndef __RESOURCE_LIST_H
Browse code

- XCAP queries moved into XCAP module, all other modules (and libs) are now independent on libcurl3 - parameter settings which was done via AVP (like xcap_root) and output variables (like subscription_status) changed to usage of global variables - due to problems with AVPs if functions called from script send requests (like NOTIFY from handle_subscripton - after sending it are AVPs cleared)

Vaclav Kubart authored on 07/04/2006 13:43:07
Showing 1 changed files
... ...
@@ -42,8 +42,12 @@ typedef struct _flat_list_t {
42 42
 
43 43
 char *xcap_uri_for_rls_resource(const str_t *xcap_root, const str_t *uri);
44 44
 void canonicalize_uri(const str_t *uri, str_t *dst);
45
-int get_rls(const str_t *xcap_root, const str_t *uri, xcap_query_params_t *xcap_params, const str_t *package, flat_list_t **dst);
46
-int get_rls_from_full_doc(const str_t *xcap_root, const str_t *uri, xcap_query_params_t *xcap_params, const str_t *package, flat_list_t **dst);
45
+int get_rls(const str_t *uri, xcap_query_params_t *xcap_params, 
46
+		const str_t *package, flat_list_t **dst);
47
+int get_rls_from_full_doc(const str_t *uri, 
48
+		/* const str_t *filename,  */
49
+		xcap_query_params_t *xcap_params, 
50
+		const str_t *package, flat_list_t **dst);
47 51
 int get_resource_list_from_full_doc(const str_t *xcap_root, const str_t *user, xcap_query_params_t *xcap_params, const char *list_name, flat_list_t **dst);
48 52
 /* TODO: int get_resource_list(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const str_t *list_name, flat_list_t **dst); */
49 53
 void free_flat_list(flat_list_t *list);
Browse code

- changed parameters of XCAP queries in PA, RLS and libs - changed processing of nested resource list (more efficient)

Vaclav Kubart authored on 17/03/2006 09:43:52
Showing 1 changed files
... ...
@@ -42,9 +42,9 @@ typedef struct _flat_list_t {
42 42
 
43 43
 char *xcap_uri_for_rls_resource(const str_t *xcap_root, const str_t *uri);
44 44
 void canonicalize_uri(const str_t *uri, str_t *dst);
45
-int get_rls(const str_t *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
-int get_rls_from_full_doc(const str_t *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
47
-int get_resource_list_from_full_doc(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const char *list_name, flat_list_t **dst);
45
+int get_rls(const str_t *xcap_root, const str_t *uri, xcap_query_params_t *xcap_params, const str_t *package, flat_list_t **dst);
46
+int get_rls_from_full_doc(const str_t *xcap_root, const str_t *uri, xcap_query_params_t *xcap_params, const str_t *package, flat_list_t **dst);
47
+int get_resource_list_from_full_doc(const str_t *xcap_root, const str_t *user, xcap_query_params_t *xcap_params, const char *list_name, flat_list_t **dst);
48 48
 /* TODO: int get_resource_list(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const str_t *list_name, flat_list_t **dst); */
49 49
 void free_flat_list(flat_list_t *list);
50 50
 
Browse code

corrected some bugs in libraries and added some functions modified RLS processing - separated XCAP query and subscription handling, added some functions for that, improved debugging improved PA and PRESENCE_B2B debugging

Vaclav Kubart authored on 15/03/2006 16:03:40
Showing 1 changed files
... ...
@@ -40,11 +40,12 @@ typedef struct _flat_list_t {
40 40
 	SEQUENCE(display_name_t) names;
41 41
 } flat_list_t;
42 42
 
43
-char *xcap_uri_for_rls_resource(const char *xcap_root, const str_t *uri);
43
+char *xcap_uri_for_rls_resource(const str_t *xcap_root, const str_t *uri);
44 44
 void canonicalize_uri(const str_t *uri, str_t *dst);
45
-int get_rls(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
-int get_rls_from_full_doc(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
47
-int get_resource_list_as_rls(const char *xcap_root, const str_t *user, xcap_query_t *xcap_params, flat_list_t **dst);
45
+int get_rls(const str_t *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
+int get_rls_from_full_doc(const str_t *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
47
+int get_resource_list_from_full_doc(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const char *list_name, flat_list_t **dst);
48
+/* TODO: int get_resource_list(const str_t *xcap_root, const str_t *user, xcap_query_t *xcap_params, const str_t *list_name, flat_list_t **dst); */
48 49
 void free_flat_list(flat_list_t *list);
49 50
 
50 51
 #endif
Browse code

RLS modified to be usable not only with XCAP server, but with standard web server too, with short description in presence handbook about how to simulate XCAP server with web server

Vaclav Kubart authored on 21/11/2005 15:54:37
Showing 1 changed files
... ...
@@ -43,6 +43,7 @@ typedef struct _flat_list_t {
43 43
 char *xcap_uri_for_rls_resource(const char *xcap_root, const str_t *uri);
44 44
 void canonicalize_uri(const str_t *uri, str_t *dst);
45 45
 int get_rls(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
+int get_rls_from_full_doc(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46 47
 int get_resource_list_as_rls(const char *xcap_root, const str_t *user, xcap_query_t *xcap_params, flat_list_t **dst);
47 48
 void free_flat_list(flat_list_t *list);
48 49
 
Browse code

added parametr "mode" to RLS module for control over resource list handling (see doc): value of "full" -> behaviour according to xcap draft (lists read through rls-services document) value of "simple" -> read resource-list documents directly (stored under specific XCAP uri)

Vaclav Kubart authored on 18/11/2005 14:58:57
Showing 1 changed files
... ...
@@ -43,6 +43,7 @@ typedef struct _flat_list_t {
43 43
 char *xcap_uri_for_rls_resource(const char *xcap_root, const str_t *uri);
44 44
 void canonicalize_uri(const str_t *uri, str_t *dst);
45 45
 int get_rls(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
+int get_resource_list_as_rls(const char *xcap_root, const str_t *user, xcap_query_t *xcap_params, flat_list_t **dst);
46 47
 void free_flat_list(flat_list_t *list);
47 48
 
48 49
 #endif
Browse code

Added a set of shared libraries with useful functions and common data structures. Short description is in lib/README, more documentation will be added soon.

Vaclav Kubart authored on 25/10/2005 14:10:16
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,48 @@
1
+/* 
2
+ * Copyright (C) 2005 iptelorg GmbH
3
+ *
4
+ * This file is part of ser, a free SIP server.
5
+ *
6
+ * ser 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 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,
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
+ */
25
+
26
+#ifndef __RESOURCE_LIST_H
27
+#define __RESOURCE_LIST_H
28
+
29
+#include <xcap/rls_services_parser.h>
30
+#include <xcap/xcap_client.h>
31
+#include <cds/sstr.h>
32
+/* #include <cds/ptr_vector.h> */
33
+
34
+/* Functions for downloading the service documents with analyzis
35
+ * and "flatting" - see draft-ietf-simple-xcap-list-usage */
36
+
37
+typedef struct _flat_list_t {
38
+	struct _flat_list_t *next;
39
+	char *uri;
40
+	SEQUENCE(display_name_t) names;
41
+} flat_list_t;
42
+
43
+char *xcap_uri_for_rls_resource(const char *xcap_root, const str_t *uri);
44
+void canonicalize_uri(const str_t *uri, str_t *dst);
45
+int get_rls(const char *xcap_root, const str_t *uri, xcap_query_t *xcap_params, const str_t *package, flat_list_t **dst);
46
+void free_flat_list(flat_list_t *list);
47
+
48
+#endif