# CORE
group = core
admin-port = 13000
admin-password = xxxxx
status-password = xxxxx
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.1.*" 
smsbox-port = 13001
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.1.*"
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
store-location = "/var/log/kannel/kannel.store"
#dlr-storage = internal
dlr-storage = mysql 

#---------------------------------------------
# SMSC CONNECTIONS
group = smsc
smsc = at
smsc-id = huawei_E160e
modemtype = HUAWEI_E220
device = /dev/ttyUSB1
speed = 460800
pin = 6425
validityperiod = 167
keepalive = 10
#my-number = +40xxxxxxxxx
sms-center = +40744946000
sim-buffering = true

include="/etc/kannel/modem.conf"

#--------------------------------
# MYSQL Connection
#--------------------------------
group = mysql-connection
id = mydlr-db
host = localhost
username = kannel
password = acron
database = kannel
max-connections = 1

#-------------------------------
# DLR Table Structure
#-------------------------------
group = dlr-db
id = mydlr-db
table = dlr
field-smsc = smsc
field-timestamp = timestamp
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc_id 

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
#bearerbox-port = 13003 
sendsms-port = 13031
sendsms-chars = "0123456789+"
global-sender = "+40744946000"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# SMS SERVICES
# there should be default always
group = sms-service
get-url = "http://192.168.1.118/email2sms/dlr.php?sender=$from&subject=$subject&time=$theTime"
accepted-smsc = huawei_E160e
keyword =
keyword-regex = .*
catch-all = true
max-messages = 0
omit-empty=true 

# SEND-SMS USERS
group = sendsms-user
username = xxxxxx
password = xxxxxxx
default-smsc = huawei_E160e
concatenation = true
max-messages = 10
dlr-url = "http://192.168.1.118/email2sms/dlr.php?dlr=%d&dest=%p&report=%A&messages=%a"
#user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1,192.168.1.*"
