#
# SAMPLE CONFIGURATION FOR KANNEL PPG (PUSH OVER SMS)
#
# It is run like this:
#
#  1% gw/bearerbox gw/pushkannel.conf
#  2% gw/wapbox gw/pushkannel.conf
#
#  Boys and girls: use more complex passwords when setting up real services,
#  this is an *example* file !
#
#  Aarno Syv�nen in August 2001, for Wiral Ltd
 
# BEARERBOX SETUP, for Kannel core operations

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
wdp-interface-name = "*"
log-file = "/tmp/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = mysql

group = mysql-connection
id = mydlr
host = 10.249.16.50
mysql-username = this
mysql-password = that
database = kannel_dlr
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

# WAPBOX SETUP, for pushing and for pulling (fetching) the wap data 
group = wapbox
bearerbox-host = localhost
log-file = "/tmp/wapbox.log"
log-level = 0
syslog-level = none

# PPG CORE SETUP, for defining the push request interface
group = ppg
ppg-url = /cgi-bin/wap-push.cgi
ppg-port = 9090
concurrent-pushes = 100
trusted-pi = true
users = 1024
ppg-allow-ip = "*.*.*.*"
global-sender = "27840001275"
service-name = ppg
default-dlr-url = http://10.249.0.220:8080/catalog/DLRListener?type=%d
ppg-smsbox-id = dlrbox

# PPG USER SETUP, for authorizing a specific push user
group = wap-push-user
wap-push-user = foo
ppg-username = foo
ppg-password = bar
dlr-url = http://10.249.0.220:8080/catalog/DLRListener?type=%d
smsbox-id = dlrbox

group = smsc
smsc = smpp
smsc-id = CELLC
host = 10.120.25.22 
port = 1061
smsc-username = "this"
smsc-password = "that"
system-type = "VMA"
address-range = ""
my-number = "27840001275"
source-addr-ton = 0
dest-addr-ton = 0

# SMSBOX SETUP
group = smsbox
smsbox-id = dlrbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = "27840001275"
log-file = "/tmp/smsbox-core.log"
log-level = 0
access-log = "/tmp/smsbox-access.log"

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
dlr-url = http://10.249.0.220:8080/catalog/DLRListener?type=%d

# SERVICES
group = sms-service
keyword = www
text = "You asked nothing and I did it!"
max-messages = 5
