Browse code

more openser to kamailio migration

osas authored on 27/10/2012 16:00:28
Showing 7 changed files
... ...
@@ -192,9 +192,9 @@
192 192
 
193 193
 #if defined KAMAILIO_MOD_INTERFACE || defined OPENSER_MOD_INTERFACE || \
194 194
 		defined MOD_INTERFACE_V1
195
-	#define DEFAULT_DB_URL "mysql://openser:openserrw@localhost/openser"
195
+	#define DEFAULT_DB_URL "mysql://kamailio:kamailiorw@localhost/kamailio"
196 196
 	#define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1)
197
-	#define DEFAULT_RODB_URL "mysql://openserro:openserro@localhost/openser"
197
+	#define DEFAULT_RODB_URL "mysql://kamailio:kamailiorw@localhost/okamailio"
198 198
 	#define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1)
199 199
 #else
200 200
 	#define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser"
... ...
@@ -109,7 +109,7 @@ import_file "kamailio-local.cfg"
109 109
 # - database URL - used to connect to database server by modules such
110 110
 #       as: auth_db, acc, usrloc, a.s.o.
111 111
 #!ifndef DBURL
112
-#!define DBURL "mysql://openser:openserrw@localhost/openser"
112
+#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
113 113
 #!endif
114 114
 #!endif
115 115
 #!ifdef WITH_MULTIDOMAIN
... ...
@@ -20,7 +20,7 @@ fi;
20 20
 
21 21
 # path to the dbtext database
22 22
 if [ -z "$DBTEXT_PATH" ] ; then
23
-	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/openser"
23
+	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
24 24
 fi
25 25
 
26 26
 export DBTEXT_PATH
... ...
@@ -9,21 +9,21 @@
9 9
 ### common variables and functions for SQL engines
10 10
 
11 11
 if [ -z "$DBNAME" ] ; then
12
-	DBNAME=openser
12
+	DBNAME=kamailio
13 13
 fi
14 14
 if [ -z "$DBHOST" ] ; then
15 15
 	DBHOST=localhost
16 16
 fi
17 17
 if [ -z "$DBRWUSER" ] ; then
18
-	DBRWUSER=openser
18
+	DBRWUSER=kamailio
19 19
 fi
20 20
 
21 21
 # the read-only user for whom password may be stored here
22 22
 if [ -z "$DBROUSER" ] ; then
23
-	DBROUSER=openserro
23
+	DBROUSER=kamailioro
24 24
 fi
25 25
 if [ -z "$DBROPW" ] ; then
26
-	DBROPW=openserro
26
+	DBROPW=kamailioro
27 27
 fi
28 28
 
29 29
 # full privileges SQL user
... ...
@@ -23,22 +23,22 @@
23 23
 # DBHOST=localhost
24 24
 
25 25
 ## database name (for ORACLE this is TNS name)
26
-# DBNAME=openser
26
+# DBNAME=kamailio
27 27
 
28 28
 # database path used by dbtext, db_berkeley or sqlite
29 29
 # DB_PATH="/usr/local/etc/kamailio/dbtext"
30 30
 
31 31
 ## database read/write user
32
-# DBRWUSER=openser
32
+# DBRWUSER=kamailio
33 33
 
34 34
 ## password for database read/write user
35
-# DBRWPW="openserrw"
35
+# DBRWPW="kamailiorw"
36 36
 
37 37
 ## database read only user
38
-# DBROUSER=openserro
38
+# DBROUSER=kamailioro
39 39
 
40 40
 ## password for database read only user
41
-# DBROPW=openserro
41
+# DBROPW=kamailioro
42 42
 
43 43
 ## database super user (for ORACLE this is 'scheme-creator' user)
44 44
 # DBROOTUSER="root"
... ...
@@ -3,22 +3,22 @@ PATH=$PATH:/usr/local/sbin
3 3
 # config vars
4 4
 
5 5
 # name of the database to be used by Kamailio
6
-DBNAME=${DBNAME:-openser}
6
+DBNAME=${DBNAME:-kamailio}
7 7
 
8 8
 # address of database server
9 9
 DBHOST=${DBHOST:-localhost}
10 10
 
11 11
 # user with full privileges over DBNAME database
12
-DBRWUSER=${DBRWUSER:-openser}
12
+DBRWUSER=${DBRWUSER:-kamailio}
13 13
 
14 14
 # password user with full privileges over DBNAME database
15
-DBRWPW=${DBRWPW:-openserrw}
15
+DBRWPW=${DBRWPW:-kamailiorw}
16 16
 
17 17
 # read-only user
18
-DBROUSER=${DBROUSER:-openserro}
18
+DBROUSER=${DBROUSER:-kamailioro}
19 19
 
20 20
 # password for read-only user
21
-DBROPW=${DBROPW:-openserro}
21
+DBROPW=${DBROPW:-kamailioro}
22 22
 
23 23
 # user name column
24 24
 USERCOL=${USERCOL:-username}
... ...
@@ -137,7 +137,7 @@ db_charset_test
137 137
 
138 138
 minfo "creating database $1 ..."
139 139
 
140
-# Users: openser is the regular user, openserro only for reading
140
+# Users: kamailio is the regular user, kamailioro only for reading
141 141
 sql_query "" "create database $1 character set $CHARSET;
142 142
 	GRANT ALL PRIVILEGES ON $1.* TO '$DBRWUSER' IDENTIFIED  BY '$DBRWPW';
143 143
 	GRANT ALL PRIVILEGES ON $1.* TO '${DBRWUSER}'@'$DBHOST' IDENTIFIED BY '$DBRWPW';