Following this guide requires basic knowledge of Linux, MySQL and SMS. You also need a SMS capable modem. We use Huawei E169 3G modem.
Install Ubuntu and configure aptitude correctly.
Install required packages: sudo apt-get install mysql kannel kannel-sqlbox
Configure Kannel – /etc/kannel/kannel.conf
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = foobar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
#wapbox-port = 13002
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = mysql
#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc = at
smsc-id = default
modemtype = huawei
device = /dev/ttyUSB0
speed = 19200
my-number = 0000000000
validityperiod = 20
sim-buffering = true
keepalive = 5
group = modems
id = huawei
name = "Huawei E169"
detect-string = "Huawei"
init-string = "AT+CNMI=0,0,0,0,0"
message-storage = "SM"
speed = 115200
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 3
group = mysql-connection
id = mydlr
host = localhost
username = username
password = password
database = database
max-connections = 10
group = dlr-db
id = mydlr
table=kannel_dlr
field-smsc=smsc
field-timestamp=ts
field-destination=destination
field-source=source
field-service=service
field-url=url
field-mask=mask
field-status=status
field-boxc-id=boxc
group = mysql-connection
id = sqlbox-db
host = localhost
username = username
password = password
database = database
max-connections = 10
group = sms-service
keyword = default
get-url = "http://localhost/sendmail.php?sender=%p&text=%b"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
catch-all = true
Configure sqlbox – /etc/kannel/sqlbox.conf
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
#global-sender = ""
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13002
smsbox-port-ssl = false
sql-log-table = kannel_sent_sms
sql-insert-table = kannel_send_sms
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""
# Database connection examples. Please uncomment as needed
# Example MYSQL Connection
group = mysql-connection
id = sqlbox-db
host = localhost
port = 3306
username = username
password = password
database = database
 
Test it Insert a message to mysql kannel_send_sms table. You need the fields: Sender, Reciever, Text (the actual message), SMSC_ID (see kannel.conf smsc_id), Account (Username of smsc)
See also Using OTRS with Kannel to send SMS.