group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bearadmin
log-level = 0
log-file = "/var/log/kannel/bearer.log"
access-log = "/var/log/kannel/beareraccess.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
store-file = "/var/spool/bearer.store"
dlr-storage = pgsql

# SMSC configuration
include = "/etc/bearer/smscs.conf"

# SMS configuration
group = smsbox
smsbox-id = sqlbox2
bearerbox-host = localhost
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsaccess.log"

# Users Configuration
include = "/etc/bearer/smsusers.conf"

# Message receiving
group = sms-service
keyword = default
#get-url = "http://10.10.10.137:8080/logurl/logurl?text=%b&keyword=%k&time=%t&to=%P&from=%p&smsc=%i&coding=%c&charset=%C&messageclass=&udh=%u"
get-url = "http://10.10.10.137:8080/MOListener/recieve?text=%b&keyword=%k&time=%t&to=%P&from=%p&smsc=%i&coding=%c&charset=%C&messageclass=&udh=%u"
catch-all = true
omit-empty = true
concatenation = true

group = pgsql-connection
id = pgsql2
host = localhost
port = 5432
username = postgres
password = 123456
database = dlr
max-connections = 2

group = dlr-db
id = mydlr
table = 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 = sqlbox
id = pgsql2
smsbox-id = sqlbox2
bearerbox-port = 13001
bearerbox-host = "127.0.0.1"
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sms_log
sql-insert-table = sms_outbox
global-sender = 111
log-file = "/var/log/kannel/sqlbox.log"
log-level = 0
