Browse code

kamctl: replaced openser with kamailio in variable and function names

Daniel-Constantin Mierla authored on 23/10/2012 14:49:29
Showing 15 changed files
... ...
@@ -1663,9 +1663,9 @@ dialplan() {
1663 1663
 
1664 1664
 #
1665 1665
 ##### ------------------------------------------------ #####
1666
-### openser_start
1666
+### kamailio_start
1667 1667
 #
1668
-openser_start() {
1668
+kamailio_start() {
1669 1669
 	echo
1670 1670
 	minfo "Starting Kamailio : "
1671 1671
 	if [ -r $PID_FILE ] ; then
... ...
@@ -1697,9 +1697,9 @@ openser_start() {
1697 1697
 
1698 1698
 #
1699 1699
 ##### ------------------------------------------------ #####
1700
-### openser_stop
1700
+### kamailio_stop
1701 1701
 #
1702
-openser_stop() {
1702
+kamailio_stop() {
1703 1703
 	echo
1704 1704
 	minfo "Stopping Kamailio : "
1705 1705
 	if [ -r $PID_FILE ] ; then
... ...
@@ -1912,7 +1912,7 @@ $SD_TABLE $CLAUSE ; "
1912 1912
 			# { 
1913 1913
 			#	  if(line==0) print "##  SIP-ID    \tNew-URI   \tDescritpion\n";
1914 1914
 			#	  else {
1915
-			#		  ORS_BAK=ORS;usage_openser_monitor() {
1915
+			#		  ORS_BAK=ORS;usage_kamailio_monitor() {
1916 1916
 			#		  ORS="";
1917 1917
 			#		  print line ") " $1 "@" $2 "\t" $3 "\t\"" $4;
1918 1918
 			#		  for (i=5;i<=NF;++i) print FS $i;
... ...
@@ -2516,7 +2516,7 @@ case $1 in
2516 2516
 
2517 2517
 	monitor|console|moni|con)
2518 2518
 		require_ctlengine
2519
-		$OPENSER_MONITOR "$@"
2519
+		$KAMAILIO_MONITOR "$@"
2520 2520
 		;;
2521 2521
 
2522 2522
 	online)
... ...
@@ -2556,9 +2556,9 @@ case $1 in
2556 2556
 		;;
2557 2557
 
2558 2558
 	restart)
2559
-		openser_stop
2559
+		kamailio_stop
2560 2560
 		sleep 2
2561
-		openser_start
2561
+		kamailio_start
2562 2562
 		;;
2563 2563
 	
2564 2564
 	rpid)
... ...
@@ -2575,11 +2575,11 @@ case $1 in
2575 2575
 		;;
2576 2576
 
2577 2577
 	start)
2578
-		openser_start
2578
+		kamailio_start
2579 2579
 		;;
2580 2580
 
2581 2581
 	stop)
2582
-		openser_stop
2582
+		kamailio_stop
2583 2583
 		;;
2584 2584
 
2585 2585
 	version)
... ...
@@ -42,7 +42,7 @@ EOF
42 42
 }
43 43
 USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_online"
44 44
 
45
-usage_openser_monitor() {
45
+usage_kamailio_monitor() {
46 46
 	echo
47 47
 	mecho " -- command 'monitor' - show internal status"
48 48
 	echo
... ...
@@ -50,7 +50,7 @@ cat <<EOF
50 50
  monitor ............................ show server's internal status
51 51
 EOF
52 52
 }
53
-USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_openser_monitor"
53
+USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_kamailio_monitor"
54 54
 
55 55
 usage_ping() {
56 56
 	echo
... ...
@@ -15,7 +15,7 @@ fi
15 15
 
16 16
 #===================================================================
17 17
 
18
-openser_bdb() {
18
+kamailio_bdb() {
19 19
 case $1 in
20 20
 	reload)
21 21
 		shift
... ...
@@ -51,7 +51,7 @@ fifo_cmd()
51 51
 		merr "fifo_cmd must take at least command name as parameter"
52 52
 		exit 1
53 53
 	fi
54
-	name=openser_receiver_$$
54
+	name=kamailio_receiver_$$
55 55
 	path=$CHROOT_DIR/tmp/$name
56 56
 	if [ ! -w $OSER_FIFO ]; then
57 57
 		merr "Error opening Kamailio's FIFO $OSER_FIFO"
... ...
@@ -99,8 +99,8 @@ fifo_cmd()
99 99
 
100 100
 CTLCMD=fifo_cmd
101 101
 
102
-fifo_openser_monitor() {
103
-	name=openser_receiver_$$
102
+fifo_kamailio_monitor() {
103
+	name=kamailio_receiver_$$
104 104
 	path=$CHROOT_DIR/tmp/$name
105 105
 	if [ ! -w $OSER_FIFO ]; then
106 106
 		merr "Error opening Kamailio's FIFO $OSER_FIFO"
... ...
@@ -188,5 +188,5 @@ EOF
188 188
 	exit 0
189 189
 }
190 190
 
191
-OPENSER_MONITOR=fifo_openser_monitor
191
+KAMAILIO_MONITOR=fifo_kamailio_monitor
192 192
 
... ...
@@ -43,11 +43,11 @@ if [ -z "$SQLPLUS" ] ; then
43 43
 	export SQLPLUS
44 44
 fi
45 45
 
46
-if [ -z "$OPENSER_ORASEL" ] ; then
46
+if [ -z "$KAMAILIO_ORASEL" ] ; then
47 47
 	locate_tool kamailio_orasel
48 48
 	if [ -n "$TOOLPATH" ] ; then
49
-		OPENSER_ORASEL="$TOOLPATH"
50
-		export OPENSER_ORASEL
49
+		KAMAILIO_ORASEL="$TOOLPATH"
50
+		export KAMAILIO_ORASEL
51 51
 	fi
52 52
 fi
53 53
 
... ...
@@ -76,7 +76,7 @@ oracle_query() {
76 76
 oracle_ro_query() {
77 77
 	# if password not yet queried, query it now
78 78
 	prompt_oracle_pw ro
79
-	if [ -z "$OPENSER_ORASEL" ]; then
79
+	if [ -z "$KAMAILIO_ORASEL" ]; then
80 80
 		mdbg "oracle_ro_query: $SQLPLUS $2 -S -L -R 3 $DBROUSER@$DBNAME '$1'"
81 81
 		RC=`echo "$SESSOPT $1" | $SQLPLUS $2 -S -L -R 3 ${DBROUSER}/${DBROPW}@${DBNAME}`
82 82
 		RE=$?
... ...
@@ -91,8 +91,8 @@ oracle_ro_query() {
91 91
 		fi
92 92
 		return $RE
93 93
 	else
94
-		mdbg "oracle_ro_query: $OPENSER_ORASEL $DBROUSER@$DBNAME $2 -N -e '$1'"
95
-		$OPENSER_ORASEL ${DBROUSER}/${DBROPW}@${DBNAME} $2 -Ne "$1"
94
+		mdbg "oracle_ro_query: $KAMAILIO_ORASEL $DBROUSER@$DBNAME $2 -N -e '$1'"
95
+		$KAMAILIO_ORASEL ${DBROUSER}/${DBROPW}@${DBNAME} $2 -Ne "$1"
96 96
 		return $?
97 97
 	fi
98 98
 }
... ...
@@ -100,6 +100,6 @@ oracle_ro_query() {
100 100
 DBCMD=oracle_query
101 101
 DBROCMD=oracle_ro_query
102 102
 DBRAWPARAMS=""
103
-if [ -n "$OPENSER_ORASEL" ]; then
103
+if [ -n "$KAMAILIO_ORASEL" ]; then
104 104
 DBRAWPARAMS="-B"
105 105
 fi
... ...
@@ -88,7 +88,7 @@ ser_mi_monitor() {
88 88
 	exit 0
89 89
 }
90 90
 
91
-OPENSER_MONITOR=ser_mi_monitor
91
+KAMAILIO_MONITOR=ser_mi_monitor
92 92
 
93 93
 
94 94
 
... ...
@@ -71,7 +71,7 @@ unixsock_cmd()
71 71
 
72 72
 CTLCMD=unixsock_cmd
73 73
 
74
-unixsock_openser_monitor() {
74
+unixsock_kamailio_monitor() {
75 75
 		attempt=0
76 76
 		if [ "$2" == "" ]; then
77 77
 		    loops=-1;
... ...
@@ -114,5 +114,5 @@ unixsock_openser_monitor() {
114 114
 
115 115
 }
116 116
 
117
-OPENSER_MONITOR=unixsock_openser_monitor
117
+KAMAILIO_MONITOR=unixsock_kamailio_monitor
118 118
 
... ...
@@ -135,7 +135,7 @@
135 135
 ## in the subscriber table - default '1'
136 136
 # STORE_PLAINTEXT_PW=0
137 137
 
138
-## OPENSER START Options
138
+## Kamailio START Options
139 139
 ## PID file path - default is: /var/run/kamailio.pid
140 140
 # PID_FILE=/var/run/kamailio.pid
141 141
 
... ...
@@ -128,10 +128,10 @@ fi
128 128
 
129 129
 
130 130
 # dump all rows
131
-openser_dump()  # pars: <database name>
131
+kamailio_dump()  # pars: <database name>
132 132
 {
133 133
 	if [ $# -ne 2 ] ; then
134
-		merr "openser_dump function takes two param"
134
+		merr "kamailio_dump function takes two param"
135 135
 		exit 1
136 136
 	fi
137 137
 	if [ "$USED_DBENGINE" == "oracle" ]; then
... ...
@@ -149,10 +149,10 @@ openser_dump()  # pars: <database name>
149 149
 }
150 150
 
151 151
 
152
-openser_restore() #pars: <database name> <filename>
152
+kamailio_restore() #pars: <database name> <filename>
153 153
 {
154 154
 	if [ $# -ne 2 ] ; then
155
-		merr "openser_restore function takes two params"
155
+		merr "kamailio_restore function takes two params"
156 156
 		exit 1
157 157
 	fi
158 158
 	if [ "$USED_DBENGINE" == "oracle" ]; then
... ...
@@ -181,7 +181,7 @@ case $1 in
181 181
 		# create new database
182 182
 		minfo "Creating new Database $3...."
183 183
 		NO_USER_INIT="yes"
184
-		openser_create $3
184
+		kamailio_create $3
185 185
 		if [ "$?" -ne 0 ] ; then
186 186
 			echo "migrate: creating new database failed"
187 187
 			exit 1
... ...
@@ -208,20 +208,20 @@ case $1 in
208 208
 			exit $?
209 209
 		fi
210 210
 		tmp_file=`mktemp /tmp/kamdbctl.XXXXXXXXXX` || exit 1
211
-		openser_dump $DBNAME $tmp_file
211
+		kamailio_dump $DBNAME $tmp_file
212 212
 		ret=$?
213 213
 		if [ "$ret" -ne 0 ]; then
214 214
 			rm $tmp_file
215 215
 			exit $ret
216 216
 		fi
217 217
 		NO_USER_INIT="yes"
218
-		openser_create $1
218
+		kamailio_create $1
219 219
 		ret=$?
220 220
 		if [ "$ret" -ne 0 ]; then
221 221
 			rm $tmp_file
222 222
 			exit $ret
223 223
 		fi
224
-		openser_restore $1 $tmp_file
224
+		kamailio_restore $1 $tmp_file
225 225
 		ret=$?
226 226
 		rm -f $tmp_file
227 227
 		exit $ret
... ...
@@ -237,7 +237,7 @@ case $1 in
237 237
 			usage
238 238
 			exit 1
239 239
 		fi
240
-		openser_dump $DBNAME $1
240
+		kamailio_dump $DBNAME $1
241 241
 		exit $?
242 242
 		;;
243 243
 	restore)
... ...
@@ -251,7 +251,7 @@ case $1 in
251 251
 			usage
252 252
 			exit 1
253 253
 		fi
254
-		openser_restore $DBNAME $1
254
+		kamailio_restore $DBNAME $1
255 255
 		exit $?
256 256
 		;;
257 257
 	create)
... ...
@@ -261,7 +261,7 @@ case $1 in
261 261
 			DBNAME="$1"
262 262
 		fi
263 263
 
264
-		openser_create $DBNAME
264
+		kamailio_create $DBNAME
265 265
 		exit $?
266 266
 		;;
267 267
 	presence)
... ...
@@ -273,14 +273,14 @@ case $1 in
273 273
 		exit $?
274 274
 		;;
275 275
 	drop)
276
-		# delete openser database
276
+		# delete kamailio database
277 277
 		# create new database structures
278 278
 		shift
279 279
 		if [ $# -eq 1 ] ; then
280 280
 			DBNAME="$1"
281 281
 		fi
282 282
 
283
-		openser_drop $DBNAME
283
+		kamailio_drop $DBNAME
284 284
 		exit $?
285 285
 		;;
286 286
 	reinit)
... ...
@@ -290,17 +290,17 @@ case $1 in
290 290
 		if [ $# -eq 1 ] ; then
291 291
 			DBNAME="$1"
292 292
 		fi
293
-		openser_drop $DBNAME
293
+		kamailio_drop $DBNAME
294 294
 		ret=$?
295 295
 		if [ "$ret" -ne 0 ]; then
296 296
 			exit $ret
297 297
 		fi
298
-		openser_create $DBNAME
298
+		kamailio_create $DBNAME
299 299
 		exit $?
300 300
 		;;
301 301
 	bdb|db_berkeley)
302 302
 		shift
303
-		openser_berkeley "$@"
303
+		kamailio_berkeley "$@"
304 304
 		exit $?
305 305
 		;;
306 306
 	version)
... ...
@@ -118,7 +118,7 @@ EOF
118 118
 #
119 119
 # 
120 120
 #
121
-openser_berkeley()  # parms: <op> <arg1> <arg2>
121
+kamailio_berkeley()  # parms: <op> <arg1> <arg2>
122 122
 {
123 123
 	case $1 in
124 124
 		list|ls)
... ...
@@ -127,43 +127,43 @@ openser_berkeley()  # parms: <op> <arg1> <arg2>
127 127
 			;;
128 128
 		cat)
129 129
 			shift
130
-			openser_cat $1 $DB_PATH
130
+			kamailio_cat $1 $DB_PATH
131 131
 			exit $?
132 132
 			;;
133 133
 
134 134
 		swap)
135 135
 			shift
136
-			openser_swap $1 $DB_PATH
136
+			kamailio_swap $1 $DB_PATH
137 137
 			exit $?
138 138
 			;;
139 139
 
140 140
 		append)
141 141
 			shift
142
-			openser_append  $1 $2 $DB_PATH
142
+			kamailio_append  $1 $2 $DB_PATH
143 143
 			exit $?
144 144
 			;;
145 145
 
146 146
 		newappend)
147 147
 			shift
148
-			openser_newappend  $1 $2 $DB_PATH
148
+			kamailio_newappend  $1 $2 $DB_PATH
149 149
 			exit $?
150 150
 			;;
151 151
 
152 152
 		export)
153 153
 			shift
154
-			openser_export  $1 $DB_PATH
154
+			kamailio_export  $1 $DB_PATH
155 155
 			exit $?
156 156
 			;;
157 157
 
158 158
 		migrate)
159 159
 			shift
160
-			openser_migrate $1 $DB_PATH
160
+			kamailio_migrate $1 $DB_PATH
161 161
 			exit $?
162 162
 			;;
163 163
 
164 164
 		import)
165 165
 			shift
166
-			openser_import  $1 $DB_PATH
166
+			kamailio_import  $1 $DB_PATH
167 167
 			exit $?
168 168
 			;;
169 169
 
... ...
@@ -182,10 +182,10 @@ esac
182 182
 #
183 183
 # Export is used as part of a DB migration process to another 
184 184
 # major version of berkeley db.
185
-openser_export()  # parms: <DUMP_DIR> [DB_PATH]
185
+kamailio_export()  # parms: <DUMP_DIR> [DB_PATH]
186 186
 {
187 187
 	if [ $# -lt 2  ]; then
188
-		echo  "openser_dump parms: <DUMP_DIR> [DB_PATH]"
188
+		echo  "kamailio_dump parms: <DUMP_DIR> [DB_PATH]"
189 189
 		exit 1
190 190
 	fi
191 191
 	
... ...
@@ -290,12 +290,12 @@ openser_export()  # parms: <DUMP_DIR> [DB_PATH]
290 290
 ##
291 291
 # MIGRATE (schema)
292 292
 # Examine each plain-txt file in DUMP_DIR
293
-#  (Assumes that openser_export was already invoked)
293
+#  (Assumes that kamailio_export was already invoked)
294 294
 #
295 295
 # Migrate converts data from schema-old to schema-new in place.
296 296
 #
297 297
 # After this step is complete the IMPORT should be executed.
298
-openser_migrate()  # parms: <DUMP_DIR> [DB_PATH]
298
+kamailio_migrate()  # parms: <DUMP_DIR> [DB_PATH]
299 299
 {
300 300
 	merr "db_berkeley migrate not implemented"
301 301
 	exit 1
... ...
@@ -308,10 +308,10 @@ openser_migrate()  # parms: <DUMP_DIR> [DB_PATH]
308 308
 #
309 309
 # import is used as part of DB migrate to another major version of berkeley db.
310 310
 # this will over-write anything in DB_PATH
311
-openser_import()  # parms: <DUMP_DIR> [DB_PATH]
311
+kamailio_import()  # parms: <DUMP_DIR> [DB_PATH]
312 312
 {
313 313
 	if [ $# -lt 2  ]; then
314
-		echo  "openser_dump parms: <DUMP_DIR> [DB_PATH]"
314
+		echo  "kamailio_dump parms: <DUMP_DIR> [DB_PATH]"
315 315
 		exit 1
316 316
 	fi
317 317
 	
... ...
@@ -393,10 +393,10 @@ openser_import()  # parms: <DUMP_DIR> [DB_PATH]
393 393
 }
394 394
 
395 395
 
396
-openser_swap()  # parms: <db> [DB_PATH]
396
+kamailio_swap()  # parms: <db> [DB_PATH]
397 397
 {
398 398
 	if [ $# -lt 2  ]; then
399
-		echo  "openser_swap parms: <db> [DB_PATH]"
399
+		echo  "kamailio_swap parms: <db> [DB_PATH]"
400 400
 		exit 1
401 401
 	fi
402 402
 	
... ...
@@ -412,10 +412,10 @@ openser_swap()  # parms: <db> [DB_PATH]
412 412
 # 1. copy DB_PATH/db to DB_PATH/db.new
413 413
 # 2. appends contents of newdata to DB_PATH/db.new
414 414
 #
415
-openser_append()  # parms: <db> <newdata> [DB_PATH]
415
+kamailio_append()  # parms: <db> <newdata> [DB_PATH]
416 416
 {
417 417
 	if [ $# -lt 3  ]; then
418
-		echo  "openser_append parms: <db> <newdata> [DB_PATH]"
418
+		echo  "kamailio_append parms: <db> <newdata> [DB_PATH]"
419 419
 		exit 1
420 420
 	fi
421 421
 	
... ...
@@ -441,10 +441,10 @@ openser_append()  # parms: <db> <newdata> [DB_PATH]
441 441
 # 3. move /tmp/sc-<processID>/db over to DB_PATH/db.new
442 442
 # 4. delete temp DBENV dir /tmp/sc-<processID>
443 443
 #
444
-openser_newappend()  # parms: <db> <newdata> [DB_PATH]
444
+kamailio_newappend()  # parms: <db> <newdata> [DB_PATH]
445 445
 {
446 446
 	if [ $# -lt 3  ]; then
447
-		echo  "openser_append parms: <db> <newdata> [DB_PATH]"
447
+		echo  "kamailio_append parms: <db> <newdata> [DB_PATH]"
448 448
 		exit 1
449 449
 	fi
450 450
 	
... ...
@@ -454,7 +454,7 @@ openser_newappend()  # parms: <db> <newdata> [DB_PATH]
454 454
 		rm $DBNEW
455 455
 	fi
456 456
 	TMPENV=/tmp/sc-$$
457
-	openser_create $TMPENV
457
+	kamailio_create $TMPENV
458 458
 	cd $OLDPWD
459 459
 	$LOAD_CMD -T -t hash -f $2 -h $TMPENV $1
460 460
 	mv $TMPENV/$1 $DBNEW
... ...
@@ -463,20 +463,20 @@ openser_newappend()  # parms: <db> <newdata> [DB_PATH]
463 463
 
464 464
 
465 465
 # cat all rows to STDOUT
466
-openser_cat()  # pars: <database name> <DB_PATH>
466
+kamailio_cat()  # pars: <database name> <DB_PATH>
467 467
 {
468 468
 	if [ $# -ne 2 ] ; then
469
-		echo  "openser_cat params <db> [DB_PATH]"
469
+		echo  "kamailio_cat params <db> [DB_PATH]"
470 470
 		exit 1
471 471
 	fi
472 472
 	
473 473
 	$DUMP_CMD -p -h $2 $1
474 474
 }
475 475
 
476
-openser_drop()  # pars:  <DB_PATH>
476
+kamailio_drop()  # pars:  <DB_PATH>
477 477
 {
478 478
 	if [ $# -ne 1 ] ; then
479
-		echo "openser_drop function takes one param"
479
+		echo "kamailio_drop function takes one param"
480 480
 		exit 1
481 481
 	fi
482 482
 	
... ...
@@ -519,10 +519,10 @@ openser_drop()  # pars:  <DB_PATH>
519 519
 }
520 520
 
521 521
 
522
-openser_create() # pars: <DB_PATH>
522
+kamailio_create() # pars: <DB_PATH>
523 523
 {
524 524
 	if [ $# -ne 1 ] ; then
525
-		echo "openser_create param [DB_PATH]"
525
+		echo "kamailio_create param [DB_PATH]"
526 526
 		exit 1
527 527
 	fi
528 528
 	
... ...
@@ -551,7 +551,7 @@ openser_create() # pars: <DB_PATH>
551 551
 		extra_create $1
552 552
 	fi
553 553
 
554
-} # openser_create
554
+} # kamailio_create
555 555
 
556 556
 
557 557
 presence_create() # pars: <DB_PATH>
... ...
@@ -22,10 +22,10 @@ if [ -z "$DB_PATH" ] ; then
22 22
 	DB_PATH="/usr/local/etc/kamailio/dbtext"
23 23
 fi
24 24
 
25
-openser_drop()  # pars: <database name>
25
+kamailio_drop()  # pars: <database name>
26 26
 {
27 27
 if [ $# -ne 1 ] ; then
28
-	merr "openser_drop function takes one param"
28
+	merr "kamailio_drop function takes one param"
29 29
 	exit 1
30 30
 fi
31 31
 
... ...
@@ -35,10 +35,10 @@ minfo "DBTEXT ... erasing all files at: $DB_PATH"
35 35
 rm -rf $DB_PATH
36 36
 }
37 37
 
38
-openser_create () # pars: <database name>
38
+kamailio_create () # pars: <database name>
39 39
 {
40 40
 if [ $# -ne 1 ] ; then
41
-	merr "openser_create function takes one param (DB_PATH)"
41
+	merr "kamailio_create function takes one param (DB_PATH)"
42 42
 	exit 1
43 43
 fi
44 44
 
... ...
@@ -4,7 +4,7 @@
4 4
 #
5 5
 # History:
6 6
 # 2006-04-07  removed gen_ha1 dependency - use md5sum;
7
-#             separated the serweb from openser tables;
7
+#             separated the serweb from kamailio tables;
8 8
 #             fixed the reinstall functionality (bogdan)
9 9
 # 2006-05-16  added ability to specify MD5 from a configuration file
10 10
 #             FreeBSD does not have the md5sum function (norm)
... ...
@@ -82,10 +82,10 @@ sql_query()
82 82
 }
83 83
 
84 84
 
85
-openser_drop()  # pars: <database name>
85
+kamailio_drop()  # pars: <database name>
86 86
 {
87 87
 if [ $# -ne 1 ] ; then
88
-	merr "openser_drop function takes two params"
88
+	merr "kamailio_drop function takes two params"
89 89
 	exit 1
90 90
 fi
91 91
 
... ...
@@ -124,10 +124,10 @@ db_charset_test()
124 124
 }
125 125
 
126 126
 
127
-openser_create () # pars: <database name>
127
+kamailio_create () # pars: <database name>
128 128
 {
129 129
 if [ $# -ne 1 ] ; then
130
-	merr "openser_create function takes one param"
130
+	merr "kamailio_create function takes one param"
131 131
 	exit 1
132 132
 fi
133 133
 
... ...
@@ -181,7 +181,7 @@ if [ "$ANSWER" = "y" ]; then
181 181
 	HAS_EXTRA="yes"
182 182
 	extra_create $1
183 183
 fi
184
-} # openser_create
184
+} # kamailio_create
185 185
 
186 186
 
187 187
 presence_create () # pars: <database name>
... ...
@@ -38,10 +38,10 @@ if [ -z "$SQLPLUS" ] ; then
38 38
 	fi
39 39
 	export SQLPLUS
40 40
 fi
41
-if [ -z "$OPENSER_ORASEL" ] ; then
42
-	OPENSER_ORASEL=`which kamailio_orasel 2>/dev/null`
41
+if [ -z "$KAMAILIO_ORASEL" ] ; then
42
+	KAMAILIO_ORASEL=`which kamailio_orasel 2>/dev/null`
43 43
 	if [ -n "$SQLPLUS" ]; then
44
-		export OPENSER_ORASEL
44
+		export KAMAILIO_ORASEL
45 45
 	fi
46 46
 fi
47 47
 
... ...
@@ -78,10 +78,10 @@ oracle_root_cmd()
78 78
 }
79 79
 
80 80
 
81
-openser_drop()  # pars: <database name>
81
+kamailio_drop()  # pars: <database name>
82 82
 {
83 83
 if [ $# -ne 1 ] ; then
84
-	merr "openser_drop function takes one params"
84
+	merr "kamailio_drop function takes one params"
85 85
 	exit 1
86 86
 fi
87 87
 
... ...
@@ -119,13 +119,13 @@ if [ -n "$DBSYSUSER" ]; then
119 119
 fi
120 120
 
121 121
 minfo "Scheme '$DBROOTUSER' in database '$1' dropped"
122
-} #openser_drop
122
+} #kamailio_drop
123 123
 
124 124
 
125
-openser_create() # pars: <database name>
125
+kamailio_create() # pars: <database name>
126 126
 {
127 127
 if [ $# -ne 1 ] ; then
128
-	merr "openser_create function takes one param"
128
+	merr "kamailio_create function takes one param"
129 129
 	exit 1
130 130
 fi
131 131
 
... ...
@@ -220,7 +220,7 @@ get_answer $INSTALL_EXTRA_TABLES "Install tables for $EXTRA_MODULES? (y/n): "
220 220
 if [ "$ANSWER" = "y" ]; then
221 221
 	extra_create $1
222 222
 fi
223
-} # openser_create
223
+} # kamailio_create
224 224
 
225 225
 
226 226
 presence_create() # pars: <database name>
... ...
@@ -281,8 +281,8 @@ oracle_dump()
281 281
 	if [ -n "$1" ]; then
282 282
 		SUFF="@$1"
283 283
 	fi
284
-	if [ -n "$OPENSER_ORASEL" ]; then
285
-		$OPENSER_ORASEL ${DBROUSER}/${DBROPW}$SUFF -BLNe \
284
+	if [ -n "$KAMAILIO_ORASEL" ]; then
285
+		$KAMAILIO_ORASEL ${DBROUSER}/${DBROPW}$SUFF -BLNe \
286 286
 		    "select * from table(dump_tables('$DBROOTUSER'));" >$2
287 287
 	else
288 288
 		echo "set feed 0 lin 8000 pages 0
... ...
@@ -72,10 +72,10 @@ sql_query()
72 72
 }
73 73
 
74 74
 
75
-openser_drop()  # pars: <database name>
75
+kamailio_drop()  # pars: <database name>
76 76
 {
77 77
 if [ $# -ne 1 ] ; then
78
-	merr "openser_drop function takes two params"
78
+	merr "kamailio_drop function takes two params"
79 79
 	exit 1
80 80
 fi
81 81
 
... ...
@@ -95,13 +95,13 @@ else
95 95
 fi
96 96
 
97 97
 minfo "Database $1 dropped"
98
-} #openser_drop
98
+} #kamailio_drop
99 99
 
100 100
 
101
-openser_create () # pars: <database name>
101
+kamailio_create () # pars: <database name>
102 102
 {
103 103
 if [ $# -ne 1 ] ; then
104
-	merr "openser_create function takes one param"
104
+	merr "kamailio_create function takes one param"
105 105
 	exit 1
106 106
 fi
107 107
 
... ...
@@ -172,7 +172,7 @@ get_answer $INSTALL_EXTRA_TABLES "Install tables for $EXTRA_MODULES? (y/n): "
172 172
 if [ "$ANSWER" = "y" ]; then
173 173
 	extra_create $1
174 174
 fi
175
-} # openser_create
175
+} # kamailio_create
176 176
 
177 177
 
178 178
 presence_create () # pars: <database name>
... ...
@@ -31,10 +31,10 @@ sql_query()
31 31
 }
32 32
 
33 33
 
34
-openser_drop()  # pars: <database name>
34
+kamailio_drop()  # pars: <database name>
35 35
 {
36 36
 if [ $# -ne 1 ] ; then
37
-	merr "openser_drop function takes one param"
37
+	merr "kamailio_drop function takes one param"
38 38
 	exit 1
39 39
 fi
40 40
 
... ...
@@ -44,13 +44,13 @@ if ! rm $1; then
44 44
 fi
45 45
 
46 46
 minfo "Database $1 dropped"
47
-} #openser_drop
47
+} #kamailio_drop
48 48
 
49 49
 
50
-openser_create () # pars: <database name>
50
+kamailio_create () # pars: <database name>
51 51
 {
52 52
 if [ $# -ne 1 ] ; then
53
-	merr "openser_create function takes one param"
53
+	merr "kamailio_create function takes one param"
54 54
 	exit 1
55 55
 fi
56 56
 
... ...
@@ -100,7 +100,7 @@ get_answer $INSTALL_EXTRA_TABLES "Install tables for $EXTRA_MODULES? (y/n): "
100 100
 if [ "$ANSWER" = "y" ]; then
101 101
 	extra_create $1
102 102
 fi
103
-} # openser_create
103
+} # kamailio_create
104 104
 
105 105
 
106 106
 presence_create () # pars: <database name>