Chapter 5. Setting up a SMS Gateway
Modem definitions are now multiple groups present in kannel.conf, either directly or, for example, by
including the example modems.conf. (See
Inclusion of configuration files
)
Variable
Value
Description
group
modems
This is a mandatory variable
id
string
This is the the id that should be
used in
modemtype
variable
from AT2
name
string
The name of this modem
configuration. Used in logs
detect-string
string
String to use when trying to
detect the modem. See
detect-string2
detect-string2
string
Second string to use to detect the
modem. For example, if the
modem replies with "SIEMENS
MODEM M20",
detect-string
could be
"SIEMENS" and
detect-strign2
"M20"
init-string
string
Optional initialization string.
Defaults to
"AT+CNMI=1,2,0,1,0"
speed
number
Serial port hint speed to use.
Optional. Defaults to smsc group
speed or autodetect
enable-hwhs
string
Optional AT command to enable
hardware handshake. Defaults to
"AT+IFC=2,2"
need-sleep
boolean
Optional. Defaults to false.
Some modems needs to sleep
after opening the serial port and
before first command
no-pin
boolean
Optional. Defaults to false. If the
modem doesn’t support the PIN
command, enable this
no-smsc
boolean
Optional. Defaults to false. If the
modem doesn’t support setting
the SMSC directly on the pdu,
enable this. (Default is to include
a "00" at the beginning of the
PDU to say it’s the default smsc,
and remove the "00" when
receiving)
47