#CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = adminsmpp
status-password = statussmpp
admin-allow-ip = "*.*.*.*"
wdp-interface-name = "*"
log-file = "/usr/local/kannel/logs/bearerbox.log"
access-log="/usr/local/kannel/logs/access.log"
#store-file = "/var/log/kannel/kannel.store"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
dlr-storage=mysql
sms-resend-freq=60
sms-resend-retry=3
sms-combine-concatenated-mo = true



#SMSBOX SETUP
group = smsbox
smsbox-id = sqlbox
bearerbox-host = localhost
sendsms-port = 13013
bearerbox-port = 13001
sendsms-chars = "0123456789 +-"
global-sender = "GSEND"
log-file = "/usr/local/kannel/logs/smsbox.log"
log-level = 0
mo-recode = 1

group = smsbox-route
smsbox-id = sqlbox
smsc-id = "firstsmsc;testuser"

# SEND-SMS USERS
group = sendsms-user
username = kuser
password = kpass
default-smsc = firstsmsc
user-allow-ip ="*.*.*.*"
max-messages = 3
concatenation = true

#mysql connection
group = mysql-connection
id = sqlbox-db
host = 127.0.0.1
username =root
password = ""
database = firstsmsc
max-connections = 10

# DLR SETUP
#mysql connection
group = mysql-connection
id = mydlr
host = 127.0.0.1
username = root
password =""
database = firstsmsc
max-connections = 10

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


# SMSC Fake
group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
#connect-allow-ip = 127.0.0.1
#msg-id-type = 0x01

# SMS SERVICE black-list
#group = sms-service
#keyword = black
#text = "You are not allowed to use this service, Go away!"
#catch-all = true



group=smsc
smsc = smpp
smsc-id = firstsmsc
host = *HOST*
port = *PORT*
smsc-username = smscgeneral
smsc-password = "****"
system-type =smpp
allowed-smsc-id =firstsmsc
log-file="/usr/local/kannel/logs/smscgeneral.log"
#log-level = 0
transceiver-mode = true
#msg-id-type=0x01

group=smsc
smsc = smpp
smsc-id = testuser
host = *HOST*
port = *PORT*
smsc-username = testuser8
smsc-password = "***"
log-file = "/usr/local/kannel/logs/testuser8.log"
log-level = 0
system-type = smpp
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
transceiver-mode = true
#msg-id-type=0x01


# SMSC SMPP
#group = smsc
#smsc-id = idForSmsc
#smsc = smpp
#host = **.**.**.**
#port = portnumber
#receive-port = 16400
#smsc-username = username
#smsc-password = password
#system-type = type
#system-id = id
#address-range = ""

#SMS SERVICE GET-URL EXAMPLE
group = sms-service
keyword = default
send-sender = true
get-url = "http://localhost/receivesms?phone=%p&text=%a"
max-messages = 3
concatenation = true

# SMS SERVICE Default
# there should be default always
#group = sms-service
#keyword = default
#text = "No service specified."
