#
# 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

group = core
admin-port = 13520
log-file = "/etc/kannel/check_sendsms_smsc.log"
log-level = 0
access-log = "/etc/kannel/check_sendsms_smsc.log"
sms-combine-concatenated-mo = true
sms-incoming-queue-limit = -1
sms-outgoing-queue-limit = -1
smsbox-max-pending = 150
smsbox-port = 13001
white-list-regex = .*
admin-password = smsserver

# SMSC GSM
#group = smsc
##smsc = at
#smsc = smpp
#host = 9159927969
#port = 0
#smsc-id = 127.0.0.1
#receive-port = 0
#phone = 9159927969
##allowed-smsc-id = +91
##allowed-prefix = 0091;97
##preferred-smsc-id = +91
##preferred-prefix = +91
#allowed-prefix-regex = .*
#preferred-prefix-regex =.*
#allowed-smsc-id-regex = .*;
#preferred-smsc-id-regex = .*
##modemtype = ericsson_r520m
#modemtype = ericsson_t68
#device = /dev/ttyACM2
##pin = 2345
#validityperiod = 5000
##sms-center="+919159927969"`	

group = smsc
smsc = at
#smsc = smpp
host = 9159927969
port = 0
#smsc-id = 127.0.0.1
smsc-id = 9159927969
receive-port = 700
smsc-username = pradeep
smsc-password = pradeep
system-type = VMA
phone = 9159927969
#allowed-smsc-id = +91
#allowed-prefix = 0091;97
#preferred-smsc-id = +91
#preferred-prefix = +91
allowed-prefix-regex = .*
preferred-prefix-regex =.*
allowed-smsc-id-regex = .*;
preferred-smsc-id-regex = .*
#modemtype = ericsson_r520m
modemtype = ericsson_t68
device = /dev/ttyACM3
#pin = 2345
validityperiod = 5000

#---------------------------------------------
# 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 = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13520
global-sender = 9159927969
log-file = "/etc/kannel/check_sendsms_smsc.log"
log-level = 0
access-log = "/etc/kannel/check_sendsms_smsc.log"
sendsms-port = 13013
global-sender = 9159927969
log-level = 0

group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13520
global-sender = 9159927969
log-file = "/etc/kannel/check_sendsms_smsc.log"
log-level = 0
access-log = "/etc/kannel/check_sendsms_smsc.log"
sendsms-port = 13013
global-sender = 9159927969
log-level = 0


#---------------------------------------------
# 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 = sendsms-user
username = pradeep
password = pradeep             
faked-sender = 9159927969
default-sender = 9159927969
allowed-prefix-regex = .*
white-list-regex = .*
concatenation= true
max-messages = 10


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

group = sms-service
keyword-regex = .*
get-url = +919159927969
catch-all = yes
max-messages = 20
faked-sender = 9159927969
file = "/etc/kannel/check_sendsms_smsc.log"

