Inclusion of configuration files, 13 core configuration – Nokia WAP and SMS gateway User Manual
Page 21
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
’bool’
. The value for variable can be like true, false, yes, no, on,
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
include
to include other file or a directory
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
include
statement :
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
kannel.conf
configuration file that includes the following
wapbox.conf
file with
all required directives for the specific box, and a
configurations
directory which may include more
files to include.
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/wapbox.log"
log-level = 0
syslog-level = none
The above
include
statement may be defined at any point in the configuration file and at any inclusion
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