#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
wapbox-port = 13002
smsbox-port = 13003
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"

# SMPP CONNECTION DETAILS
group = smsc
smsc = smpp
host = --.---.--.---
port = 3002
receive-port = 3002
smsc-username = "*****"
smsc-password = *****
system-type = "smpp"
my-number = "2725"
address-range = ""
msg-id-type = 0x01
transceiver-mode = true

group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
bearerbox-port = 13003
sendsms-port = 13005 
bearerbox-host = localhost
global-sender = 2725
access-log = "kannel.access"
log-file = "smsbox.log"
log-level = 0

group = smsbox-route
smsbox-id = mysmsc
shortcode = "2725"

# SMS SERVICES
group = sms-service
keyword = default
accept-x-kannel-headers = true
#text = "No service specified"
catch-all = true
max-messages = 0 # it's better to put this parameter to 0 or you will have a lot Ack in      your network
get-url = "get-url = http://localhost/kannel/inbound.php?timestamp=%t&sender=%p&recipient=%P&body=%a"

# mysql db connection 
group = mysql-connection
id = mydlr
host = localhost
username = root
password = root
database = mproperties_db
max-connections = 1

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



# SMS Service
group = sms-service
keyword = default
accept-x-kannel-headers = true
#text = "No service specified"
catch-all = true
max-messages = 0 # it's better to put this parameter to 0 or you will have a lot Ack in      your network
get-url = "get-url = http://localhost/kannel/inbound.php?timestamp=%t&sender=%p&recipient=%P&body=%a"

group = sendsms-user
username = foo
password = bar


# SMS SERVICE GET-URL EXAMPLE
group = sms-service
keyword = default
get-url = http://localhost/kannel/inbound.php?timestamp=%t&sender=%p&recipient=%P&body=%a


group = sms-service
keyword = House
# keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = http://localhost/kannel/inbound.php?timestamp=%t&sender=%p&recipient=%P&body=%a






