Browse code

kamctl: update name to globalblocklist in EXTRA_TABLES

- GH #2773

Daniel-Constantin Mierla authored on 10/06/2021 10:15:29
Showing 1 changed files
... ...
@@ -123,7 +123,7 @@
123 123
 #                   dialplan"
124 124
 
125 125
 ## Kamailio extra modules
126
-# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"
126
+# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblocklist htable purple sca"
127 127
 
128 128
 
129 129
 ## type of aliases used: DB - database aliases; UL - usrloc aliases
Browse code

kamctl: kamctlrc - fix CHROOT_DIR example and coherent use of ## for comments

- ## is used for explanatory comments
- # is used for commented options

Daniel-Constantin Mierla authored on 12/03/2020 10:14:09
Showing 1 changed files
... ...
@@ -1,20 +1,20 @@
1
-# The Kamailio configuration file for the control tools.
2
-#
3
-# Here you can set variables used in the kamctl and kamdbctl setup
4
-# scripts. Per default all variables here are commented out, the control tools
5
-# will use their internal default values.
1
+## The Kamailio configuration file for the control tools.
2
+##
3
+## Here you can set variables used in the kamctl and kamdbctl setup
4
+## scripts. Per default all variables here are commented out, the control tools
5
+## will use their internal default values.
6 6
 
7
-## your SIP domain
7
+## the SIP domain
8 8
 # SIP_DOMAIN=kamailio.org
9 9
 
10 10
 ## chrooted directory
11
-# $CHROOT_DIR="/path/to/chrooted/directory"
11
+# CHROOT_DIR="/path/to/chrooted/directory"
12 12
 
13 13
 ## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE
14
-# by default none is loaded
15
-#
16
-# If you want to setup a database with kamdbctl, you must at least specify
17
-# this parameter.
14
+## by default none is loaded
15
+##
16
+## If you want to setup a database with kamdbctl, you must at least specify
17
+## this parameter.
18 18
 # DBENGINE=MYSQL
19 19
 
20 20
 ## database host
... ...
@@ -26,7 +26,7 @@
26 26
 ## database name (for ORACLE this is TNS name)
27 27
 # DBNAME=kamailio
28 28
 
29
-# database path used by dbtext, db_berkeley or sqlite
29
+## database path used by dbtext, db_berkeley or sqlite
30 30
 # DB_PATH="/usr/local/etc/kamailio/dbtext"
31 31
 
32 32
 ## database read/write user
... ...
@@ -62,68 +62,67 @@
62 62
 # USERCOL="username"
63 63
 
64 64
 
65
-# SQL definitions
66
-# If you change this definitions here, then you must change them
67
-# in db/schema/entities.xml too.
68
-# FIXME
65
+## SQL definitions
66
+## If you change this definitions here, then you must change them
67
+## in db/schema/entities.xml too.
68
+## FIXME
69 69
 
70 70
 # FOREVER="2030-05-28 21:32:15"
71 71
 # DEFAULT_Q="1.0"
72 72
 
73 73
 
74
-# Program to calculate a message-digest fingerprint
74
+## Program to calculate a message-digest fingerprint
75 75
 # MD5="md5sum"
76 76
 
77
-# awk tool
77
+## awk tool
78 78
 # AWK="awk"
79 79
 
80
-# gdb tool
80
+## gdb tool
81 81
 # GDB="gdb"
82 82
 
83
-# If you use a system with a grep and egrep that is not 100% gnu grep compatible,
84
-# e.g. solaris, install the gnu grep (ggrep) and specify this below.
85
-#
86
-# grep tool
83
+## If you use a system with a grep and egrep that is not 100% gnu grep compatible,
84
+## e.g. solaris, install the gnu grep (ggrep) and specify this below.
85
+##
86
+## grep tool
87 87
 # GREP="grep"
88 88
 
89
-# egrep tool
89
+## egrep tool
90 90
 # EGREP="egrep"
91 91
 
92
-# sed tool
92
+## sed tool
93 93
 # SED="sed"
94 94
 
95
-# tail tool
95
+## tail tool
96 96
 # LAST_LINE="tail -n 1"
97 97
 
98
-# expr tool
98
+## expr tool
99 99
 # EXPR="expr"
100 100
 
101 101
 
102
-# Describe what additional tables to install. Valid values for the variables
103
-# below are yes/no/ask. With ask (default) it will interactively ask the user
104
-# for an answer, while yes/no allow for automated, unassisted installs.
105
-#
102
+## Describe what additional tables to install. Valid values for the variables
103
+## below are yes/no/ask. With ask (default) it will interactively ask the user
104
+## for an answer, while yes/no allow for automated, unassisted installs.
106 105
 
107
-# If to install tables for the modules in the EXTRA_MODULES variable.
106
+## If to install tables for the modules in the EXTRA_MODULES variable.
108 107
 # INSTALL_EXTRA_TABLES=ask
109 108
 
110
-# If to install presence related tables.
109
+## If to install presence related tables.
111 110
 # INSTALL_PRESENCE_TABLES=ask
112 111
 
113
-# If to install uid modules related tables.
112
+## If to install uid modules related tables.
114 113
 # INSTALL_DBUID_TABLES=ask
115 114
 
116
-# Define what module tables should be installed.
117
-# If you use the postgres database and want to change the installed tables, then you
118
-# must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
119
-# kamdbctl.base script.
115
+## Define what module tables should be installed.
116
+## If you use the postgres database and want to change the installed tables, then you
117
+## must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
118
+## kamdbctl.base script.
120 119
 
121
-# Kamailio standard modules
120
+## Kamailio standard modules
122 121
 # STANDARD_MODULES="standard acc lcr domain group permissions registrar usrloc msilo
123 122
 #                   alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher
124 123
 #                   dialplan"
125 124
 
126
-# Kamailio extra modules
125
+## Kamailio extra modules
127 126
 # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"
128 127
 
129 128
 
... ...
@@ -161,5 +160,5 @@
161 160
 # PID_FILE=/run/kamailio/kamailio.pid
162 161
 
163 162
 ## Extra start options - default is: not set
164
-# example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
163
+## example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
165 164
 # STARTOPTIONS=
Browse code

kamctl: kamctlrc - small adjustmet to rpc fifo file to match default naming

Daniel-Constantin Mierla authored on 10/03/2020 19:24:52
Showing 1 changed files
... ...
@@ -136,7 +136,7 @@
136 136
 # CTLENGINE="RPCFIFO"
137 137
 
138 138
 ## path to FIFO file for engine RPCFIFO
139
-# RPCFIFOPATH="/run/kamailio/kamailio_rpc_fifo"
139
+# RPCFIFOPATH="/run/kamailio/kamailio_rpc.fifo"
140 140
 
141 141
 ## check ACL names; default on (1); off (0)
142 142
 # VERIFY_ACL=1
Browse code

kamctl: switch from deprecated /var/run to /run

The FHS 3.0 [F] has deprecated /var/run in favor of /run. Current
distributions have done so for a long time (for example in Debian
since 6.0 “squeeze”), even though they provide a compatibility
symlink from /var/run to /run. But software like systemd have
started emitting warnings when using /var/run, for example for
its PIDFile directive, which pollutes the logs.

Guillem Jover authored on 25/10/2019 09:47:31 • Daniel-Constantin Mierla committed on 25/10/2019 10:00:46
Showing 1 changed files
... ...
@@ -136,7 +136,7 @@
136 136
 # CTLENGINE="RPCFIFO"
137 137
 
138 138
 ## path to FIFO file for engine RPCFIFO
139
-# RPCFIFOPATH="/var/run/kamailio/kamailio_rpc_fifo"
139
+# RPCFIFOPATH="/run/kamailio/kamailio_rpc_fifo"
140 140
 
141 141
 ## check ACL names; default on (1); off (0)
142 142
 # VERIFY_ACL=1
... ...
@@ -157,8 +157,8 @@
157 157
 # STORE_PLAINTEXT_PW=0
158 158
 
159 159
 ## Kamailio START Options
160
-## PID file path - default is: /var/run/kamailio/kamailio.pid
161
-# PID_FILE=/var/run/kamailio/kamailio.pid
160
+## PID file path - default is: /run/kamailio/kamailio.pid
161
+# PID_FILE=/run/kamailio/kamailio.pid
162 162
 
163 163
 ## Extra start options - default is: not set
164 164
 # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
Browse code

kamdbctl: new option DBINITASK to control the steps for db init

- if set DBINITASK=yes, then each step requires confirmation (e.g.,
database creation, users creation, standard tables creation)
- can be useful when needing to run only some of the steps

Daniel-Constantin Mierla authored on 23/10/2019 06:47:19
Showing 1 changed files
... ...
@@ -52,6 +52,9 @@
52 52
 ## - known to work for: mysql
53 53
 # DBROOTPW="dbrootpw"
54 54
 
55
+## option to ask confirmation for all database creation steps
56
+# DBINITASK=yes
57
+
55 58
 ## database character set (used by MySQL when creating database)
56 59
 #CHARSET="latin1"
57 60
 
Browse code

utils: Fix copy/paste of 'database port'

Sean Bright authored on 27/02/2019 20:35:53 • Henning Westerholt committed on 27/02/2019 21:43:50
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@
20 20
 ## database host
21 21
 # DBHOST=localhost
22 22
 
23
-## database host
23
+## database port
24 24
 # DBPORT=3306
25 25
 
26 26
 ## database name (for ORACLE this is TNS name)
Browse code

utils: revert commit to two files accidentally introduced in commit 61eb1ac7

Henning Westerholt authored on 18/02/2019 19:54:03
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@
15 15
 #
16 16
 # If you want to setup a database with kamdbctl, you must at least specify
17 17
 # this parameter.
18
-DBENGINE=MYSQL
18
+# DBENGINE=MYSQL
19 19
 
20 20
 ## database host
21 21
 # DBHOST=localhost
Browse code

kamdbctl: warn that drop cmd will drop existing DB, ask for confirmation (GH #1858)

- warn that the drop command will drop existing DB, ask for confirmation
- manually merge pull request GH #1858 from fredposner, fred at qxork dot com

Henning Westerholt authored on 18/02/2019 19:44:29
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@
15 15
 #
16 16
 # If you want to setup a database with kamdbctl, you must at least specify
17 17
 # this parameter.
18
-# DBENGINE=MYSQL
18
+DBENGINE=MYSQL
19 19
 
20 20
 ## database host
21 21
 # DBHOST=localhost
Browse code

kamctl: set default PID_FILE to /var/run/kamailio/kamailio.pid

- this being now the path used by default kamailio options

Daniel-Constantin Mierla authored on 08/03/2018 07:54:48
Showing 1 changed files
... ...
@@ -154,7 +154,7 @@
154 154
 # STORE_PLAINTEXT_PW=0
155 155
 
156 156
 ## Kamailio START Options
157
-## PID file path - default is: /var/run/kamailio.pid
157
+## PID file path - default is: /var/run/kamailio/kamailio.pid
158 158
 # PID_FILE=/var/run/kamailio/kamailio.pid
159 159
 
160 160
 ## Extra start options - default is: not set
Browse code

kamctl: use VERIFY_USER variable to control if user check is done

- help automating some commands such as acl grant

Daniel-Constantin Mierla authored on 14/12/2017 13:55:27
Showing 1 changed files
... ...
@@ -142,6 +142,10 @@
142 142
 ## are accepted
143 143
 # ACL_GROUPS="local ld int voicemail free-pstn"
144 144
 
145
+## check if user exists (used by some commands such as acl);
146
+## - default on (1); off (0)
147
+# VERIFY_USER=1
148
+
145 149
 ## verbose - debug purposes - default '0'
146 150
 # VERBOSE=1
147 151
 
Browse code

kamctl: expose db root password variable used by kamdbctl.mysql in kamctlrc

- DBROOTPW can be now set in kamctlrc
- targeting use for automatic testing

Daniel-Constantin Mierla authored on 01/12/2017 10:05:21
Showing 1 changed files
... ...
@@ -47,6 +47,11 @@
47 47
 ## database super user (for ORACLE this is 'scheme-creator' user)
48 48
 # DBROOTUSER="root"
49 49
 
50
+## password for database super user
51
+## - important: this is insecure, targeting the use only for automatic testing
52
+## - known to work for: mysql
53
+# DBROOTPW="dbrootpw"
54
+
50 55
 ## database character set (used by MySQL when creating database)
51 56
 #CHARSET="latin1"
52 57
 
Browse code

kamctl: mention CHARSET as option in kamctlrc

Daniel-Constantin Mierla authored on 24/01/2017 11:25:30
Showing 1 changed files
... ...
@@ -47,7 +47,10 @@
47 47
 ## database super user (for ORACLE this is 'scheme-creator' user)
48 48
 # DBROOTUSER="root"
49 49
 
50
-# user name column
50
+## database character set (used by MySQL when creating database)
51
+#CHARSET="latin1"
52
+
53
+## user name column
51 54
 # USERCOL="username"
52 55
 
53 56
 
Browse code

kamctl: added DBPORT option

- allows to specify database engine (mysql/psql) port
- requested by GH #916

Daniel-Constantin Mierla authored on 09/01/2017 19:35:47
Showing 1 changed files
... ...
@@ -20,6 +20,9 @@
20 20
 ## database host
21 21
 # DBHOST=localhost
22 22
 
23
+## database host
24
+# DBPORT=3306
25
+
23 26
 ## database name (for ORACLE this is TNS name)
24 27
 # DBNAME=kamailio
25 28
 
Browse code

kamctl: removed mi related commands

Daniel-Constantin Mierla authored on 04/01/2017 15:41:07
Showing 1 changed files
... ...
@@ -117,16 +117,13 @@
117 117
 ## - default: none
118 118
 # ALIASES_TYPE="DB"
119 119
 
120
-## control engine: FIFO, RPCFIFO or UNIXSOCK
120
+## control engine: RPCFIFO
121 121
 ## - default RPCFIFO
122 122
 # CTLENGINE="RPCFIFO"
123 123
 
124 124
 ## path to FIFO file for engine RPCFIFO
125 125
 # RPCFIFOPATH="/var/run/kamailio/kamailio_rpc_fifo"
126 126
 
127
-## path to FIFO file for engine FIFO
128
-# FIFOPATH="/var/run/kamailio/kamailio_fifo"
129
-
130 127
 ## check ACL names; default on (1); off (0)
131 128
 # VERIFY_ACL=1
132 129
 
Browse code

kamctl: set default to use rpc fifo via jsonrpcs module

Daniel-Constantin Mierla authored on 19/12/2016 18:19:45
Showing 1 changed files
... ...
@@ -118,15 +118,15 @@
118 118
 # ALIASES_TYPE="DB"
119 119
 
120 120
 ## control engine: FIFO, RPCFIFO or UNIXSOCK
121
-## - default FIFO
122
-# CTLENGINE="FIFO"
121
+## - default RPCFIFO
122
+# CTLENGINE="RPCFIFO"
123 123
 
124
-## path to FIFO file
125
-# FIFOPATH="/var/run/kamailio/kamailio_fifo"
126
-
127
-## path to RPCFIFO file
124
+## path to FIFO file for engine RPCFIFO
128 125
 # RPCFIFOPATH="/var/run/kamailio/kamailio_rpc_fifo"
129 126
 
127
+## path to FIFO file for engine FIFO
128
+# FIFOPATH="/var/run/kamailio/kamailio_fifo"
129
+
130 130
 ## check ACL names; default on (1); off (0)
131 131
 # VERIFY_ACL=1
132 132
 
Browse code

kamctl: added rpcfifo control engine

- interact with kamailio via a fifo file using jsonrpc-s module
- CTLENGINE has to be set to RPCFIFO
- RPCFIFOPATH has to be set to the fifo file created by jsonrpc-s module
- kamctl rpc command is available for sending raw jsonrpc commands
- it forwards number cli parameters as number type in jsonrpc commands
- the prefix s: or i: can be used to enforce type string or int for
parameters

kamctl rpc jsonrpc.eco abc 123
kamctl rpc jsonrpc.eco s:abc i:123
kamctl rpc jsonrpc.eco s:888 i:123

Daniel-Constantin Mierla authored on 02/12/2016 07:20:34
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@
49 49
 
50 50
 
51 51
 # SQL definitions
52
-# If you change this definitions here, then you must change them 
52
+# If you change this definitions here, then you must change them
53 53
 # in db/schema/entities.xml too.
54 54
 # FIXME
55 55
 
... ...
@@ -57,7 +57,7 @@
57 57
 # DEFAULT_Q="1.0"
58 58
 
59 59
 
60
-# Program to calculate a message-digest fingerprint 
60
+# Program to calculate a message-digest fingerprint
61 61
 # MD5="md5sum"
62 62
 
63 63
 # awk tool
... ...
@@ -117,13 +117,16 @@
117 117
 ## - default: none
118 118
 # ALIASES_TYPE="DB"
119 119
 
120
-## control engine: FIFO or UNIXSOCK
120
+## control engine: FIFO, RPCFIFO or UNIXSOCK
121 121
 ## - default FIFO
122 122
 # CTLENGINE="FIFO"
123 123
 
124 124
 ## path to FIFO file
125 125
 # FIFOPATH="/var/run/kamailio/kamailio_fifo"
126 126
 
127
+## path to RPCFIFO file
128
+# RPCFIFOPATH="/var/run/kamailio/kamailio_rpc_fifo"
129
+
127 130
 ## check ACL names; default on (1); off (0)
128 131
 # VERIFY_ACL=1
129 132
 
Browse code

kamctl remove svn ID's and history

Olle E. Johansson authored on 03/06/2016 08:34:25
Showing 1 changed files
... ...
@@ -1,5 +1,3 @@
1
-# $Id$
2
-#
3 1
 # The Kamailio configuration file for the control tools.
4 2
 #
5 3
 # Here you can set variables used in the kamctl and kamdbctl setup
Browse code

utils/kamctl: change fifo default path to /var/run/kamailio

Victor Seva authored on 17/02/2015 09:07:06
Showing 1 changed files
... ...
@@ -124,7 +124,7 @@
124 124
 # CTLENGINE="FIFO"
125 125
 
126 126
 ## path to FIFO file
127
-# FIFOPATH="/tmp/kamailio_fifo"
127
+# FIFOPATH="/var/run/kamailio/kamailio_fifo"
128 128
 
129 129
 ## check ACL names; default on (1); off (0)
130 130
 # VERIFY_ACL=1
... ...
@@ -142,7 +142,7 @@
142 142
 
143 143
 ## Kamailio START Options
144 144
 ## PID file path - default is: /var/run/kamailio.pid
145
-# PID_FILE=/var/run/kamailio.pid
145
+# PID_FILE=/var/run/kamailio/kamailio.pid
146 146
 
147 147
 ## Extra start options - default is: not set
148 148
 # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
Browse code

kamctl: note in kamctlrc how to enable automatic creation of dbuid tables

Daniel-Constantin Mierla authored on 01/10/2014 12:45:28
Showing 1 changed files
... ...
@@ -98,6 +98,9 @@
98 98
 # If to install presence related tables.
99 99
 # INSTALL_PRESENCE_TABLES=ask
100 100
 
101
+# If to install uid modules related tables.
102
+# INSTALL_DBUID_TABLES=ask
103
+
101 104
 # Define what module tables should be installed.
102 105
 # If you use the postgres database and want to change the installed tables, then you
103 106
 # must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
Browse code

utils/kamctl: removed unused default values

- test if DEFAULT_Q is set inside the function using it, because it has
single place usage

Daniel-Constantin Mierla authored on 16/09/2014 16:13:02
Showing 1 changed files
... ...
@@ -56,11 +56,7 @@
56 56
 # FIXME
57 57
 
58 58
 # FOREVER="2030-05-28 21:32:15"
59
-# DEFAULT_ALIASES_EXPIRES=$FOREVER
60 59
 # DEFAULT_Q="1.0"
61
-# DEFAULT_CALLID="Default-Call-ID"
62
-# DEFAULT_CSEQ="13"
63
-# DEFAULT_LOCATION_EXPIRES=$FOREVER
64 60
 
65 61
 
66 62
 # Program to calculate a message-digest fingerprint 
Browse code

utils/kamctl: new command 'trap' - useful to get a full bt dump of all kamailio processes - handy in dead-lock investigatigations

Ovidiu Sas authored on 17/12/2013 17:53:20
Showing 1 changed files
... ...
@@ -69,6 +69,9 @@
69 69
 # awk tool
70 70
 # AWK="awk"
71 71
 
72
+# gdb tool
73
+# GDB="gdb"
74
+
72 75
 # If you use a system with a grep and egrep that is not 100% gnu grep compatible,
73 76
 # e.g. solaris, install the gnu grep (ggrep) and specify this below.
74 77
 #
Browse code

kamctl: use FIFOPATH instead of OSER_FIFO in kamctlrc

- no longer relation to former project name, however OSER_FIFO can still
be set to keep the compatibility with older deployemnts, but will be
used only when FIFOPATH is not explicitely set

Daniel-Constantin Mierla authored on 27/08/2013 09:16:52
Showing 1 changed files
... ...
@@ -122,7 +122,7 @@
122 122
 # CTLENGINE="FIFO"
123 123
 
124 124
 ## path to FIFO file
125
-# OSER_FIFO="FIFO"
125
+# FIFOPATH="/tmp/kamailio_fifo"
126 126
 
127 127
 ## check ACL names; default on (1); off (0)
128 128
 # VERIFY_ACL=1
Browse code

kamctl: added option to grant sql access from a remote host

- set DBACCESSHOST in kamctlrc

Daniel-Constantin Mierla authored on 23/01/2013 11:49:16
Showing 1 changed files
... ...
@@ -29,16 +29,19 @@
29 29
 # DB_PATH="/usr/local/etc/kamailio/dbtext"
30 30
 
31 31
 ## database read/write user
32
-# DBRWUSER=kamailio
32
+# DBRWUSER="kamailio"
33 33
 
34 34
 ## password for database read/write user
35 35
 # DBRWPW="kamailiorw"
36 36
 
37 37
 ## database read only user
38
-# DBROUSER=kamailioro
38
+# DBROUSER="kamailioro"
39 39
 
40 40
 ## password for database read only user
41
-# DBROPW=kamailioro
41
+# DBROPW="kamailioro"
42
+
43
+## database access host (from where is kamctl used)
44
+# DBACCESSHOST=192.168.0.1
42 45
 
43 46
 ## database super user (for ORACLE this is 'scheme-creator' user)
44 47
 # DBROOTUSER="root"
Browse code

kamctlrc: adding sca to the list of extra modules

Ovidiu Sas authored on 29/11/2012 20:42:26
Showing 1 changed files
... ...
@@ -107,7 +107,7 @@
107 107
 #                   dialplan"
108 108
 
109 109
 # Kamailio extra modules
110
-# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple"
110
+# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple sca"
111 111
 
112 112
 
113 113
 ## type of aliases used: DB - database aliases; UL - usrloc aliases
Browse code

more openser to kamailio migration

osas authored on 27/10/2012 16:00:28
Showing 1 changed files
... ...
@@ -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"
Browse code

kamctl: replaced openser with kamailio in variable and function names

Daniel-Constantin Mierla authored on 23/10/2012 14:49:29
Showing 1 changed files
... ...
@@ -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
 
Browse code

db scheme: move usrloc and alias expire time 10 years to the future, to 2030

Henning Westerholt authored on 07/09/2012 10:57:30
Showing 1 changed files
... ...
@@ -52,7 +52,7 @@
52 52
 # in db/schema/entities.xml too.
53 53
 # FIXME
54 54
 
55
-# FOREVER="2020-05-28 21:32:15"
55
+# FOREVER="2030-05-28 21:32:15"
56 56
 # DEFAULT_ALIASES_EXPIRES=$FOREVER
57 57
 # DEFAULT_Q="1.0"
58 58
 # DEFAULT_CALLID="Default-Call-ID"
Browse code

utils: add sqlite support to kamctl/kamdbctl

- sql scripts copied from postgres versions and converted to sqlite
(only major change was: sed s/SERIAL/INTEGER/)
- kamdbctl.sqlite based on kamdbctl.postgres with permissions stuff
removed (sqlite has unix file permissions only) and some mysql
emulation removed too
- no real ro-mode

Natanael Copa authored on 26/05/2011 07:18:44 • Timo Teräs committed on 26/05/2011 07:35:37
Showing 1 changed files
... ...
@@ -12,7 +12,9 @@
12 12
 ## chrooted directory
13 13
 # $CHROOT_DIR="/path/to/chrooted/directory"
14 14
 
15
-## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded
15
+## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE
16
+# by default none is loaded
17
+#
16 18
 # If you want to setup a database with kamdbctl, you must at least specify
17 19
 # this parameter.
18 20
 # DBENGINE=MYSQL
... ...
@@ -23,7 +25,7 @@
23 25
 ## database name (for ORACLE this is TNS name)
24 26
 # DBNAME=openser
25 27
 
26
-# database path used by dbtext or db_berkeley
28
+# database path used by dbtext, db_berkeley or sqlite
27 29
 # DB_PATH="/usr/local/etc/kamailio/dbtext"
28 30
 
29 31
 ## database read/write user
Browse code

kamctl: moved from tools/ to utils/

- mv tools/kamctl utils/kamctl
- updated srdb1 Makefile and test/unit/include/common with the new
kamctl path

Andrei Pelinescu-Onciul authored on 09/10/2009 12:05:15
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,142 @@
1
+# $Id$
2
+#
3
+# The Kamailio configuration file for the control tools.
4
+#
5
+# Here you can set variables used in the kamctl and kamdbctl setup
6
+# scripts. Per default all variables here are commented out, the control tools
7
+# will use their internal default values.
8
+
9
+## your SIP domain
10
+# SIP_DOMAIN=kamailio.org
11
+
12
+## chrooted directory
13
+# $CHROOT_DIR="/path/to/chrooted/directory"
14
+
15
+## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded
16
+# If you want to setup a database with kamdbctl, you must at least specify
17
+# this parameter.
18
+# DBENGINE=MYSQL
19
+
20
+## database host
21
+# DBHOST=localhost
22
+
23
+## database name (for ORACLE this is TNS name)
24
+# DBNAME=openser
25
+
26
+# database path used by dbtext or db_berkeley
27
+# DB_PATH="/usr/local/etc/kamailio/dbtext"
28
+
29
+## database read/write user
30
+# DBRWUSER=openser
31
+
32
+## password for database read/write user
33
+# DBRWPW="openserrw"
34
+
35
+## database read only user
36
+# DBROUSER=openserro
37
+
38
+## password for database read only user
39
+# DBROPW=openserro
40
+
41
+## database super user (for ORACLE this is 'scheme-creator' user)
42
+# DBROOTUSER="root"
43
+
44
+# user name column
45
+# USERCOL="username"
46
+
47
+
48
+# SQL definitions
49
+# If you change this definitions here, then you must change them 
50
+# in db/schema/entities.xml too.
51
+# FIXME
52
+
53
+# FOREVER="2020-05-28 21:32:15"
54
+# DEFAULT_ALIASES_EXPIRES=$FOREVER
55
+# DEFAULT_Q="1.0"
56
+# DEFAULT_CALLID="Default-Call-ID"
57
+# DEFAULT_CSEQ="13"
58
+# DEFAULT_LOCATION_EXPIRES=$FOREVER
59
+
60
+
61
+# Program to calculate a message-digest fingerprint 
62
+# MD5="md5sum"
63
+
64
+# awk tool
65
+# AWK="awk"
66
+
67
+# If you use a system with a grep and egrep that is not 100% gnu grep compatible,
68
+# e.g. solaris, install the gnu grep (ggrep) and specify this below.
69
+#
70
+# grep tool
71
+# GREP="grep"
72
+
73
+# egrep tool
74
+# EGREP="egrep"
75
+
76
+# sed tool
77
+# SED="sed"
78
+
79
+# tail tool
80
+# LAST_LINE="tail -n 1"
81
+
82
+# expr tool
83
+# EXPR="expr"
84
+
85
+
86
+# Describe what additional tables to install. Valid values for the variables
87
+# below are yes/no/ask. With ask (default) it will interactively ask the user
88
+# for an answer, while yes/no allow for automated, unassisted installs.
89
+#
90
+
91
+# If to install tables for the modules in the EXTRA_MODULES variable.
92
+# INSTALL_EXTRA_TABLES=ask
93
+
94
+# If to install presence related tables.
95
+# INSTALL_PRESENCE_TABLES=ask
96
+
97
+# Define what module tables should be installed.
98
+# If you use the postgres database and want to change the installed tables, then you
99
+# must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
100
+# kamdbctl.base script.
101
+
102
+# Kamailio standard modules
103
+# STANDARD_MODULES="standard acc lcr domain group permissions registrar usrloc msilo
104
+#                   alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher
105
+#                   dialplan"
106
+
107
+# Kamailio extra modules
108
+# EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist htable purple"
109
+
110
+
111
+## type of aliases used: DB - database aliases; UL - usrloc aliases
112
+## - default: none
113
+# ALIASES_TYPE="DB"
114
+
115
+## control engine: FIFO or UNIXSOCK
116
+## - default FIFO
117
+# CTLENGINE="FIFO"
118
+
119
+## path to FIFO file
120
+# OSER_FIFO="FIFO"
121
+
122
+## check ACL names; default on (1); off (0)
123
+# VERIFY_ACL=1
124
+
125
+## ACL names - if VERIFY_ACL is set, only the ACL names from below list
126
+## are accepted
127
+# ACL_GROUPS="local ld int voicemail free-pstn"
128
+
129
+## verbose - debug purposes - default '0'
130
+# VERBOSE=1
131
+
132
+## do (1) or don't (0) store plaintext passwords
133
+## in the subscriber table - default '1'
134
+# STORE_PLAINTEXT_PW=0
135
+
136
+## OPENSER START Options
137
+## PID file path - default is: /var/run/kamailio.pid
138
+# PID_FILE=/var/run/kamailio.pid
139
+
140
+## Extra start options - default is: not set
141
+# example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64"
142
+# STARTOPTIONS=