Inclusion Of Configuration Files - Kannel WAP and SMS gateway User Manual

Open source wap and sms gateway
Table of Contents

Advertisement

Chapter 3. Using the gateway
Lines 1 and 6 are comment lines. Line 5 separates the two groups. The remaining lines define variables.
The group type is defined by the group variable value.
The various variables that are understood in each type of configuration group are explained below.
Some variable values are marked as
. The value for variable can be like true, false, yes, no, on,
'bool'
off, 0 or 1. Other values are treated as 'true' while if the variable is not present at all, it is treated as being
'false'.
Inclusion of configuration files
A configuration file may contain a special directive called
to include other file or a directory
include
with files to the configuration processing.
This allows to segment the specific configuration groups required for several services and boxes to
different files and hence to have more control in larger setups.
Here is an example that illustrates the
statement :
include
group = core
admin-port = 13000
wapbox-port = 13002
admin-password = bar
wdp-interface-name = " * "
log-file = "/var/log/bearerbox.log"
log-level = 1
box-deny-ip = " * . * . * . * "
box-allow-ip = "127.0.0.1"
include = "wapbox.conf"
include = "configurations"
Above is the main
configuration file that includes the following
file with
kannel.conf
wapbox.conf
all required directives for the specific box, and a
directory which may include more
configurations
files to include.
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/wapbox.log"
log-level = 0
syslog-level = none
The above
statement may be defined at any point in the configuration file and at any inclusion
include
depth. Hence you can cascade numerous inclusions if necessary.
At process start time inclusion of configuration files breaks if either the included file can not be opened
and processed or the included file has been processed already in the stack and a recursive cycling has
been detected.
14

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1.3.1

Table of Contents