opensips/opensips.patch.ctlrc

Sat, 22 Sep 2012 00:05:30 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 22 Sep 2012 00:05:30 +0200
changeset 707
005bcc1c949b
parent 547
1c75a8bb0fec
child 708
1b957bfaea12
permissions
-rw-r--r--

Replace missing perl-dbi dependencies and add path to mysql(1) client.

michael@409 1 Index: scripts/opensipsctlrc
michael@409 2 diff -Nau scripts/opensipsctlrc.orig scripts/opensipsctlrc
michael@409 3 --- scripts/opensipsctlrc.orig 2011-08-24 10:12:07.000000000 +0200
michael@409 4 +++ scripts/opensipsctlrc 2012-03-22 19:04:38.092856433 +0100
michael@707 5 @@ -1,22 +1,19 @@
michael@547 6 -# $Id: opensipsctlrc 9049 2012-05-24 14:03:31Z osas $
michael@409 7 -#
michael@409 8 -# The OpenSIPS configuration file for the control tools.
michael@409 9 -#
michael@409 10 -# Here you can set variables used in the opensipsctl and opensipsdbctl setup
michael@409 11 -# scripts. Per default all variables here are commented out, the control tools
michael@409 12 -# will use their internal default values.
michael@409 13 +##
michael@409 14 +## opensipsctlrc -- OpenSIPS control tools configuration
michael@409 15 +##
michael@409 16
michael@409 17 ## your SIP domain
michael@409 18 -# SIP_DOMAIN=opensips.org
michael@409 19 +# SIP_DOMAIN=name.host.tld
michael@409 20
michael@409 21 ## chrooted directory
michael@409 22 # $CHROOT_DIR="/path/to/chrooted/directory"
michael@409 23
michael@409 24 -## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT,
michael@409 25 -## by default none is loaded
michael@409 26 -# If you want to setup a database with opensipsdbctl, you must at least specify
michael@409 27 -# this parameter.
michael@409 28 -# DBENGINE=MYSQL
michael@409 29 +## Database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT;
michael@409 30 +## by default none is loaded. Use opensipsdbctl to setup a database.
michael@409 31 +DBENGINE=DBTEXT
michael@707 32 +
michael@707 33 +## Path to MySQL client
michael@707 34 +MYSQL=@l_prefix@/bin/mysql
michael@409 35
michael@409 36 ## database host
michael@409 37 # DBHOST=localhost
michael@707 38 @@ -25,16 +22,22 @@
michael@409 39 # DBNAME=opensips
michael@409 40
michael@409 41 # database path used by dbtext or db_berkeley
michael@409 42 -# DB_PATH="/usr/local/etc/opensips/dbtext"
michael@409 43 +DB_PATH=@l_prefix@/var/opensips/db
michael@409 44
michael@409 45 ## database read/write user
michael@409 46 -# DBRWUSER=opensips
michael@409 47 +# DBRWUSER=@l_rusr@
michael@409 48
michael@409 49 ## password for database read/write user
michael@409 50 -# DBRWPW="opensipsrw"
michael@409 51 +# DBRWPW=rente_word_pass_rw
michael@409 52 +
michael@409 53 +## database read only user
michael@409 54 +# DBROUSER=@l_rusr@
michael@409 55 +
michael@409 56 +## password for database read only user
michael@409 57 +# DBROPW=rentero_word_pass
michael@409 58
michael@409 59 ## database super user (for ORACLE this is 'scheme-creator' user)
michael@409 60 -# DBROOTUSER="root"
michael@409 61 +# DBROOTUSER=@l_susr@
michael@409 62
michael@409 63 # user name column
michael@409 64 # USERCOL="username"
michael@707 65 @@ -43,7 +46,7 @@
michael@409 66 # SQL definitions
michael@409 67 # If you change this definitions here, then you must change them
michael@409 68 # in db/schema/entities.xml too.
michael@409 69 -# FIXME
michael@409 70 +#
michael@409 71
michael@409 72 # FOREVER="2020-05-28 21:32:15"
michael@409 73 # DEFAULT_ALIASES_EXPIRES=$FOREVER
michael@707 74 @@ -97,13 +100,16 @@
michael@409 75
michael@409 76 ## control engine: FIFO or UNIXSOCK
michael@409 77 ## - default FIFO
michael@409 78 -# CTLENGINE=xmlrpc
michael@409 79 +CTLENGINE=FIFO
michael@409 80
michael@409 81 ## path to FIFO file
michael@409 82 -# OSIPS_FIFO="/tmp/opensips_fifo"
michael@409 83 +OSIPS_FIFO=@l_prefix@/var/opensips/opensips.fifo
michael@409 84 +
michael@409 85 +## path to server inbound FIFO directory
michael@409 86 +OSER_FIRET=@l_prefix@/var/opensips
michael@409 87
michael@409 88 ## MI_CONNECTOR control engine: FIFO, UNIXSOCK, UDP, XMLRPC
michael@409 89 -# MI_CONNECTOR=FIFO:/tmp/opensips_fifo
michael@409 90 +# MI_CONNECTOR=FIFO:@l_prefix@/var/opensips/opensips.fifo
michael@409 91 # MI_CONNECTOR=UNIXSOCK:/tmp/opensips.sock
michael@409 92 # MI_CONNECTOR=UDP:192.168.2.133:8000
michael@409 93 # MI_CONNECTOR=XMLRPC:192.168.2.133:8000
michael@707 94 @@ -120,15 +126,16 @@
michael@409 95
michael@409 96 ## do (1) or don't (0) store plaintext passwords
michael@409 97 ## in the subscriber table - default '1'
michael@409 98 -# STORE_PLAINTEXT_PW=0
michael@409 99 +STORE_PLAINTEXT_PW=0
michael@409 100
michael@409 101 ## do not display the output highlighted
michael@409 102 # NOHLPRINT=1
michael@409 103
michael@409 104 ## OPENSIPS START Options
michael@409 105 -## PID file path - default is: /var/run/opensips.pid
michael@409 106 -# PID_FILE=/var/run/opensips.pid
michael@409 107 +## PID file path - default is: @l_prefix@/var/opensips/opensips.pid
michael@409 108 +PID_FILE=@l_prefix@/var/opensips/opensips.pid
michael@409 109
michael@409 110 ## Extra start options - default is: not set
michael@409 111 # example: start opensips with 64MB share memory: STARTOPTIONS="-m 64"
michael@409 112 +# ...as opposed to the 32MB share memory default value in 1.7
michael@409 113 # STARTOPTIONS=
michael@409 114 Index: scripts/osipsconsolerc
michael@409 115 diff -Nau scripts/osipsconsolerc.orig scripts/osipsconsolerc
michael@409 116 --- scripts/osipsconsolerc.orig 2011-07-12 18:42:53.000000000 +0200
michael@409 117 +++ scripts/osipsconsolerc 2012-03-22 19:04:45.670384106 +0100
michael@707 118 @@ -1,51 +1,55 @@
michael@409 119 -# $Id: osicpsconsolerc
michael@409 120 -#
michael@409 121 -# The OpenSIPS configuration file for the control tools.
michael@409 122 -#
michael@409 123 -# Here you can set variables used in the opensipsctl and opensipsdbctl setup
michael@409 124 -# scripts. Per default all variables here are commented out, the control tools
michael@409 125 -# will use their internal default values.
michael@409 126 +##
michael@409 127 +## osipsconsolerc -- OpenSIPS management configuration
michael@409 128 +##
michael@409 129
michael@409 130 ## your SIP domain
michael@409 131 -# SIP_DOMAIN=opensips.org
michael@409 132 +# SIP_DOMAIN=name.host.tld
michael@707 133 +
michael@707 134 +## Database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT;
michael@707 135 +## by default none is loaded. Use opensipsdbctl to setup a database.
michael@707 136 +DBENGINE=DBTEXT
michael@409 137
michael@409 138 -## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded
michael@409 139 -# If you want to setup a database with opensipsdbctl, you must at least specify
michael@409 140 -# this parameter.
michael@409 141 -# DBENGINE=MYSQL
michael@707 142 +## Path to MySQL client
michael@707 143 +MYSQL=@l_prefix@/bin/mysql
michael@409 144
michael@409 145 ## database host
michael@409 146 # DBHOST=localhost
michael@409 147
michael@409 148 -## database port (PostgreSQL=5433 mandatory; MYSQL=3306 optional)
michael@409 149 -# DBPORT=3306
michael@409 150 +## database port for PostgreSQL
michael@409 151 +# DBPORT=5433
michael@409 152
michael@409 153 ## database name (for ORACLE this is TNS name)
michael@409 154 # DBNAME=opensips
michael@409 155
michael@409 156 ## database path used by dbtext or db_berkeley
michael@409 157 -# DB_PATH="/usr/local/etc/opensips/dbtext"
michael@409 158 +DB_PATH=@l_prefix@/var/opensips/db
michael@409 159
michael@409 160 ## database read/write user
michael@409 161 -# DBRWUSER=opensips
michael@409 162 +# DBRWUSER=@l_rusr@
michael@409 163
michael@409 164 ## password for database read/write user
michael@409 165 -# DBRWPW=opensipsrw
michael@409 166 +# DBRWPW=rente_word_pass_rw
michael@409 167 +
michael@409 168 +## database read only user
michael@409 169 +# DBROUSER=@l_rusr@
michael@409 170 +
michael@409 171 +## password for database read only user
michael@409 172 +# DBROPW=rentero_word_pass
michael@409 173
michael@409 174 ## database super user (for ORACLE this is 'scheme-creator' user)
michael@409 175 -# DBROOTUSER=root
michael@409 176 +# DBROOTUSER=@l_susr@
michael@409 177
michael@409 178 -# Program to calculate a message-digest fingerprint
michael@409 179 -# MD5=md5sum
michael@409 180 +# Program to calculate a message-digest fingerprint
michael@409 181 +# MD5="md5sum"
michael@409 182
michael@409 183 # awk tool
michael@409 184 -# AWK=awk
michael@409 185 +# AWK="awk"
michael@409 186
michael@409 187 # grep tool
michael@409 188 -# GREP=egrep
michael@409 189 +# GREP="egrep"
michael@409 190
michael@409 191 # sed tool
michael@409 192 -# SED=sed
michael@409 193 +# SED="sed"
michael@409 194
michael@409 195
michael@409 196 # Describe what additional tables to install. Valid values for the variables
michael@707 197 @@ -54,14 +58,15 @@
michael@409 198 #
michael@409 199
michael@409 200 # Define what module tables should be installed.
michael@409 201 -# If you use the postgres database and want to change the installed tables, then you
michael@409 202 -# must also adjust the STANDARD_TABLES or EXTRA_TABLES variable accordingly in the
michael@409 203 -# opensipsdbctl.base script.
michael@409 204 +# If you use the postgres database and want to change the installed tables,
michael@409 205 +# then you must also adjust the STANDARD_TABLES or EXTRA_TABLES variable
michael@409 206 +# accordingly in the opensipsdbctl.base script.
michael@409 207
michael@409 208 # opensips standard modules
michael@409 209 -# STANDARD_MODULES="standard acc domain group permissions registrar usrloc msilo
michael@409 210 -# alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher
michael@409 211 -# dialplan drouting nathelper load_balancer"
michael@409 212 +# STANDARD_MODULES="standard acc domain group permissions registrar
michael@409 213 +# usrloc msilo alias_db uri_db speeddial avpops auth_db
michael@409 214 +# pdt dialog dispatcher dialplan drouting nathelper
michael@409 215 +# load_balancer"
michael@409 216
michael@409 217 # opensips extra modules
michael@409 218 # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist"
michael@707 219 @@ -69,10 +74,10 @@
michael@409 220
michael@409 221 ## type of aliases used: DB - database aliases; UL - usrloc aliases
michael@409 222 ## - default: none
michael@409 223 -# ALIASES_TYPE=DB
michael@409 224 +# ALIASES_TYPE="DB"
michael@409 225
michael@409 226 ## MI_CONNECTOR control engine: FIFO, UNIXSOCK, UDP, XMLRPC
michael@409 227 -# MI_CONNECTOR=FIFO:/tmp/opensips_fifo
michael@409 228 +# MI_CONNECTOR=FIFO:@l_prefix@/var/opensips/opensips.fifo
michael@409 229 # MI_CONNECTOR=UNIXSOCK:/tmp/opensips.sock
michael@409 230 # MI_CONNECTOR=UDP:192.168.2.133:8000
michael@409 231 # MI_CONNECTOR=XMLRPC:192.168.2.133:8000
michael@707 232 @@ -80,22 +85,18 @@
michael@409 233 ## check ACL names; default on (1); off (0)
michael@409 234 # VERIFY_ACL=1
michael@409 235
michael@409 236 -## ACL names - if VERIFY_ACL is set, only the ACL names from below list
michael@409 237 -## are accepted
michael@409 238 +## ACL names - if VERIFY_ACL is set, only ACL names from list are accepted
michael@409 239 # ACL_GROUPS="local ld int voicemail free-pstn"
michael@409 240
michael@409 241 ## do (1) or don't (0) store plaintext passwords
michael@409 242 ## in the subscriber table - default '1'
michael@409 243 -# STORE_PLAINTEXT_PW=1
michael@409 244 +STORE_PLAINTEXT_PW=0
michael@409 245
michael@409 246 ## OPENSIPS START Options
michael@409 247 -## PID file path - default is: /var/run/opensips.pid
michael@409 248 -# PID_FILE=/var/run/opensips.pid
michael@409 249 -
michael@409 250 -## OUTPUT control - default output is to SYSLOG
michael@409 251 -## 0=output to console, 1=output to syslog
michael@409 252 -# SYSLOG=0
michael@409 253 +## PID file path - default is: @l_prefix@/var/opensips/opensips.pid
michael@409 254 +PID_FILE=@l_prefix@/var/opensips/opensips.pid
michael@409 255
michael@409 256 ## Extra start options - default is: not set
michael@409 257 # example: start opensips with 64MB share memory: STARTOPTIONS="-m 64"
michael@409 258 +# ...as opposed to the 32MB share memory default value in 1.7
michael@409 259 # STARTOPTIONS=

mercurial