#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
# Note that you can run them in different machines but have to
# add certain command line argument and configuration variables then
#
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives
#
# Notes on those who base their configuration on this:
#  1) check security issues! (allowed IPs, passwords and ports)
#  2) groups cannot have empty rows inside them!
#  3) read the user guide
#
# Kalle Marjola for Kannel project 2001, 2004

#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'


group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
#admin-password = bar
admin-password = KannelAdmin123
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/var/log/kannel/kannel.log"
log-level = 3
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;59.144.175.72;122.161.0.232"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/var/log/kannel/access.log"
#store-file = "/var/log/kannel/kannel.store"
sms-resend-freq = 240
sms-resend-retry = 3
#store-dump-freq = 10
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#white-list = "http://localhost/whitelist.txt"
wdp-interface-name = "*"

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs


# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!

#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1

group = smsc
smsc = smpp
#smsc-id = Reliance-A
host = 192.168.1.1
port = 2775
#receive-port = 2775
throughput = 25
#wait-ack = 240
wait-ack = 600
smsc-username = sms1
smsc-password = sms1
system-type = 
#address-range = ""
#connection-timeout = 30000
transceiver-mode = 
enquire-link-interval = 1200
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
#bind-addr-ton = 1
#bind-addr-npi = 1
max-pending-submits = 7

group = smsc
smsc = smpp
#smsc-id = Reliance-B
host = 192.168.1.2
port = 2775
#receive-port = 2775
throughput = 25
#wait-ack = 240
wait-ack = 600
smsc-username = sms1
smsc-password = sms1
system-type =
#address-range = ""
#connection-timeout = 30000
transceiver-mode =
enquire-link-interval = 1200
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
#bind-addr-ton = 1
#bind-addr-npi = 1
max-pending-submits = 8

group = smsc
smsc = smpp
#smsc-id = Reliance-B
host = 192.168.1.1
port = 2775
#receive-port = 2775
throughput = 35
#wait-ack = 240
wait-ack = 600
smsc-username = sms2
smsc-password = sms2
system-type =
#address-range = ""
#connection-timeout = 30000
transceiver-mode =
enquire-link-interval = 1200
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
#bind-addr-ton = 1
#bind-addr-npi = 1
max-pending-submits = 7

group = smsc
smsc = smpp
#smsc-id = Reliance-B
host = 192.168.1.2
port = 2775
#receive-port = 2775
throughput = 35
#wait-ack = 240
wait-ack = 600
smsc-username = sms2
smsc-password = sms2
system-type =
#address-range = ""
#connection-timeout = 30000
transceiver-mode =
enquire-link-interval = 1200
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
#bind-addr-ton = 1
#bind-addr-npi = 1
max-pending-submits = 8


#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
sendsms-port = 13013
global-sender = 13013
mo-recode = 1
#sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 3
access-log = "/var/log/kannel/access.log"
max-pending-requests = 600

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

#group = sendsms-user
#username = tester
#password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
#forced-smsc = FAKE

group = sendsms-user
username = unisysA
password = sms1

group = sendsms-user
username = unisysB
password = sms2

#user-deny-ip = "*.*.*.*"
#user-allow-ip = "127.0.0.1;59.144.175.72;122.161.0.24"
#max-messages = 0
#concatenation = true
#forced-smsc = Reliance-A

#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

#group = sms-service
#keyword = nop
#text = "You asked nothing and I did it!"

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = "No service specified"

group = wapbox
bearerbox-host = 127.0.0.1
log-file = "/var/log/kannel/wapbox.log"
log-level = 0
