#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to users@kannel.org
#
#   Kalle Marjola May 2000
#   Changed for new fakesmsc version by Uoti Urpala Jan 2001
#   Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
#

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel_logs/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
unified-prefix = "00358,+358,358,0"
access-log = "/tmp/kannel_logs/access.log"
store-file = "kannel.store"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


# SMSC CONNECTIONS

group = smsc
smsc = at2
smsc-id = VSMSC
modemtype = ericsson_t68
device = /dev/ttyS0
speed=1920
validityperiod = 255
keepalive = 10
sim-buffering = true
sms-center = "+nnnnnnnnnn" (is this same number as the mobile device acting as SMSC)

# Mobile Phone CONFIGURATION
group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "ATQ0E1V1"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true
message-storage= "ME"
# no-smsc = true
# if you want direct message indication instead of sim buffering
# init-string = "AT+CNMI=3,3"


# FAKE SMSC CONNECTIONS

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


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/kannel_logs/smsbox.log"
log-level = 0
access-log = "/tmp/kannel_logs/sms_access.log"


# SEND-SMS USERS

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

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = kannel
password = rL4y
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"


# SERVICES

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

group = sms-service
keyword = nipu
text = "Hello! World."

group = sms-service
keyword = complex
get-url = "http://localhost/SmsReceivedServlet?sender=%p&text=%
r&smsc-id=%i"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true

group = sms-service
keyword = complexp
post-url = "http://localhost/SmsReceivedServlet?sender=%p&text=
%r&smsc-id=%i"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true

# this service is for Kannel relay testing, when this Kannel
# works as relay gateway

group = sms-service
keyword = relay
get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%
r"
max-messages = 0


# there should be default always

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