Browse code

modules_s/cpl-c: moved to obsolete list

- use the other cpl-c module

Daniel-Constantin Mierla authored on 21/12/2012 12:28:44
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,63 +0,0 @@
1
-/*
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
26
- */
27
-
28
-#ifndef _CPL_DB_H
29
-#define _CPL_DB_H
30
-
31
-#include "../../lib/srdb2/db.h"
32
-
33
-
34
-int cpl_db_bind(char* db_url);
35
-int cpl_db_init(char* db_url, char* db_table);
36
-void cpl_db_close();
37
-
38
-
39
-/* inserts into database a cpl script in XML format(xml) along with its binary
40
- * format (bin)
41
- * Returns:  1 - success
42
- *          -1 - error
43
- */
44
-int write_to_db( char *usr, str *xml, str *bin);
45
-
46
-
47
-/* fetch from database the binary format of the cpl script for a given user
48
- * Returns:  1 - success
49
- *          -1 - error
50
- */
51
-int get_user_script(str *user, str *script, int bin);
52
-
53
-
54
-/* delete from database the entire record for a given user - if a user has no
55
- * script, he will be removed completely from db; users without script are not
56
- * allowed into db ;-)
57
- * Returns:  1 - success
58
- *          -1 - error
59
- */
60
-int rmv_from_db(char *usr);
61
-
62
-
63
-#endif
Browse code

ser modules ported to sip-router

- added -DSER_MOD_INTERFACE to each module Makefile
- db:
- linked with srdb2 when needed
- fixed db includes path (../../lib/srdb2/*.h)
- fixed db constants
- fixed tm include path (../../modules/tm/*.h)

Andrei Pelinescu-Onciul authored on 15/04/2009 17:16:10
Showing 1 changed files
... ...
@@ -28,7 +28,7 @@
28 28
 #ifndef _CPL_DB_H
29 29
 #define _CPL_DB_H
30 30
 
31
-#include "../../db/db.h"
31
+#include "../../lib/srdb2/db.h"
32 32
 
33 33
 
34 34
 int cpl_db_bind(char* db_url);
Browse code

- updated to the latest db api

Jan Janak authored on 28/05/2008 16:51:35
Showing 1 changed files
... ...
@@ -48,7 +48,7 @@ int write_to_db( char *usr, str *xml, str *bin);
48 48
  * Returns:  1 - success
49 49
  *          -1 - error
50 50
  */
51
-int get_user_script(str *user, str *script, const char *key);
51
+int get_user_script(str *user, str *script, int bin);
52 52
 
53 53
 
54 54
 /* delete from database the entire record for a given user - if a user has no
Browse code

- Spelling checked - READMEs updated

Jan Janak authored on 24/08/2004 08:58:23
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
  *
... ...
@@ -51,8 +51,8 @@ int write_to_db( char *usr, str *xml, str *bin);
51 51
 int get_user_script(str *user, str *script, const char *key);
52 52
 
53 53
 
54
-/* delete from database the entiry record for a given user - if a user has no
55
- * script, he will be removed complitly from db; users without script are not
54
+/* delete from database the entire record for a given user - if a user has no
55
+ * script, he will be removed completely from db; users without script are not
56 56
  * allowed into db ;-)
57 57
  * Returns:  1 - success
58 58
  *          -1 - error
Browse code

- flag CPL_IS_STATEFUL is set now imediatly after the transaction is created - all global variables merged into structs cpl_env and cpl_fct - append_branches param added to lookup node - case_sensitive and realm_prefix added for building AORs - suncc warnings fixed

Bogdan-Andrei Iancu authored on 14/06/2004 17:41:20
Showing 1 changed files
... ...
@@ -48,7 +48,7 @@ int write_to_db( char *usr, str *xml, str *bin);
48 48
  * Returns:  1 - success
49 49
  *          -1 - error
50 50
  */
51
-int get_user_script(str *user, str *script, char *key);
51
+int get_user_script(str *user, str *script, const char *key);
52 52
 
53 53
 
54 54
 /* delete from database the entiry record for a given user - if a user has no
Browse code

- changed db api: now several db modules can be used simultaneously; all the modules were updated to use the new api - small cleaups, like using static db related variables in modules (were it was possible) - changed version no.

Andrei Pelinescu-Onciul authored on 08/06/2004 10:55:29
Showing 1 changed files
... ...
@@ -31,19 +31,24 @@
31 31
 #include "../../db/db.h"
32 32
 
33 33
 
34
+int cpl_db_bind(char* db_url);
35
+int cpl_db_init(char* db_url, char* db_table);
36
+void cpl_db_close();
37
+
38
+
34 39
 /* inserts into database a cpl script in XML format(xml) along with its binary
35 40
  * format (bin)
36 41
  * Returns:  1 - success
37 42
  *          -1 - error
38 43
  */
39
-int write_to_db(db_con_t *db_con, char *usr, str *xml, str *bin);
44
+int write_to_db( char *usr, str *xml, str *bin);
40 45
 
41 46
 
42 47
 /* fetch from database the binary format of the cpl script for a given user
43 48
  * Returns:  1 - success
44 49
  *          -1 - error
45 50
  */
46
-int get_user_script( db_con_t *db_hdl, str *user, str *script, char *key);
51
+int get_user_script(str *user, str *script, char *key);
47 52
 
48 53
 
49 54
 /* delete from database the entiry record for a given user - if a user has no
... ...
@@ -52,7 +57,7 @@ int get_user_script( db_con_t *db_hdl, str *user, str *script, char *key);
52 57
  * Returns:  1 - success
53 58
  *          -1 - error
54 59
  */
55
-int rmv_from_db(db_con_t *db_con, char *usr);
60
+int rmv_from_db(char *usr);
56 61
 
57 62
 
58 63
 #endif
Browse code

- script download via Register added

Bogdan-Andrei Iancu authored on 12/09/2003 15:38:56
Showing 1 changed files
... ...
@@ -43,7 +43,7 @@ int write_to_db(db_con_t *db_con, char *usr, str *xml, str *bin);
43 43
  * Returns:  1 - success
44 44
  *          -1 - error
45 45
  */
46
-int get_user_script( db_con_t *db_hdl, str *user, str *script);
46
+int get_user_script( db_con_t *db_hdl, str *user, str *script, char *key);
47 47
 
48 48
 
49 49
 /* delete from database the entiry record for a given user - if a user has no
Browse code

-fifo command added for removing CPl scripts from database

Bogdan-Andrei Iancu authored on 21/08/2003 10:50:44
Showing 1 changed files
... ...
@@ -31,8 +31,28 @@
31 31
 #include "../../db/db.h"
32 32
 
33 33
 
34
+/* inserts into database a cpl script in XML format(xml) along with its binary
35
+ * format (bin)
36
+ * Returns:  1 - success
37
+ *          -1 - error
38
+ */
34 39
 int write_to_db(db_con_t *db_con, char *usr, str *xml, str *bin);
40
+
41
+
42
+/* fetch from database the binary format of the cpl script for a given user
43
+ * Returns:  1 - success
44
+ *          -1 - error
45
+ */
35 46
 int get_user_script( db_con_t *db_hdl, str *user, str *script);
36 47
 
37 48
 
49
+/* delete from database the entiry record for a given user - if a user has no
50
+ * script, he will be removed complitly from db; users without script are not
51
+ * allowed into db ;-)
52
+ * Returns:  1 - success
53
+ *          -1 - error
54
+ */
55
+int rmv_from_db(db_con_t *db_con, char *usr);
56
+
57
+
38 58
 #endif
Browse code

more devel.

Bogdan-Andrei Iancu authored on 24/06/2003 14:28:32
Showing 1 changed files
... ...
@@ -28,8 +28,11 @@
28 28
 #ifndef _CPL_DB_H
29 29
 #define _CPL_DB_H
30 30
 
31
+#include "../../db/db.h"
31 32
 
32
-int write_to_db(char *usr, char *bin_s, int bin_len, char *xml_s, int xml_len);
33
+
34
+int write_to_db(db_con_t *db_con, char *usr, str *xml, str *bin);
33 35
 int get_user_script( db_con_t *db_hdl, str *user, str *script);
34 36
 
37
+
35 38
 #endif
Browse code

some development

Bogdan-Andrei Iancu authored on 23/06/2003 15:38:48
Showing 1 changed files
... ...
@@ -28,9 +28,8 @@
28 28
 #ifndef _CPL_DB_H
29 29
 #define _CPL_DB_H
30 30
 
31
-int write_to_db(char *usr, char *bin_s, int bin_len, char *xml_s, int xml_len);
32 31
 
33
-extern char* DB_URL;
34
-extern char* DB_TABLE;
32
+int write_to_db(char *usr, char *bin_s, int bin_len, char *xml_s, int xml_len);
33
+int get_user_script( db_con_t *db_hdl, str *user, str *script);
35 34
 
36 35
 #endif
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:53
Showing 1 changed files
... ...
@@ -1,3 +1,30 @@
1
+/*
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
26
+ */
27
+
1 28
 #ifndef _CPL_DB_H
2 29
 #define _CPL_DB_H
3 30
 
Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 14/08/2002 16:24:37
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+#ifndef _CPL_DB_H
2
+#define _CPL_DB_H
3
+
4
+int write_to_db(char *usr, char *bin_s, int bin_len, char *xml_s, int xml_len);
5
+
6
+extern char* DB_URL;
7
+extern char* DB_TABLE;
8
+
9
+#endif