#
# 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 = MYADMINPASSWORD
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "MY-SERVER-IP"
status-password= MY-ADMIN-STATUS-PASSWORD
log-level = 1 
log-file = "/var/log/kannel/kannel.log"
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
store-file = "/var/log/kannel/kannel.store"
dlr-storage = mysql

group = smsc
smsc = smpp
smsc-id = MY-OPERATOR-NAME
host = MY-OPERATOR-SMSC-IP
port = 5018
our-host = MY-KANNEL-SERVER-IP
receive-port = 5018
smsc-username = "SIX-DIGIT-ID-PROVIDED-BY-OPERATOR"
smsc-password = PASSWORD-PROVIDED-BY-OPERATOR-FOR-SMS-USERNAME-ABOVE
system-type = ""
address-range = "81*"
#my-number = MY_DEFAULT-SHORTCODE-ASSIGNED-BY-OPERATOR-AFTER-CREATION-AT-MDMC-Moduel
enquire-link-interval = 15
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 0
dest-addr-npi = 1

# MYSQL DB CONNECTION
group             = mysql-connection
id                = dlr-db
host              = localhost
mysql-username    = MY-MYSQL-USER-ID
mysql-password    = MY_MYSQL_DB-PASSWORD
database          = dlr
max-connections   = 1

group = dlr-db
id = dlr-db
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source = source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc


group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = "0123456789+"
#global-sender = MY-DEFAULT-SHORTCODE
access-log = "/var/log/kannel/kannel.access"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1 

# SEND-SMS USERS -22388
group = sendsms-user
username = admin
password = MYPASSOWRD
name = "22388"
default-sender = 22388
max-messages = 3
concatenation = true


# SEND-SMS USERS - 99914
group = sendsms-user
username = admin	
password = MYPASSWORD
name = "99914"
default-sender = 99914
max-messages = 3
concatenation = true

# SMS SERVICE - 99914 SHORTCODE
# there should be default always
group = sms-service
keyword = default
name = "99914"
allowed-receiver-prefix = 99914
max-messages = 0
#exec = /usr/local/bin/kannel_incoming %t %q %a 
get-url = "http://DOMAIN/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a"

# SMS SERVICE '22388' - SHORTCODE 
# there should be default always
group = sms-service
keyword = default
name = "22388"
allowed-receiver-prefix = 22388
max-messages = 0
#exec = /usr/local/bin/kannel_incoming %t %q %a
get-url = "http://DOMAIN/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a"

group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
access-log = "/var/log/kannel/access_wapbox.log"
syslog-level = none
timer-freq = 10
map-url = "http://mmsc/* http://localhost:80/*";

group = ppg
ppg-url = /wappush
ppg-port = 7487
concurrent-pushes = 5
users = 1024
ppg-allow-ip = 127.0.0.1
trusted-pi = true

group = wap-push-user
wap-push-user = admin
ppg-username = admin	
ppg-password = MY-PPG-PASSWORD
allow-ip = 127.0.0.1
