#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, send email to users@kannel.org
#
#include = "/etc/modemsNokia.conf"

group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
wdp-interface-name = "*"
store-location = "/var/log/kannel/kannel.store"
dlr-storage = mysql


# SMSC CONNECTIONS - GLOBAL FIELDS
# SMSC GSM

group = smsc
smsc = at
smsc-id = NOKIA
modemtype = nokiaphone
device = /dev/ttyACM0
speed = 9600


group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
message-storage = "SM"
enable-hwhs = "AT+CNMI=1,1,0,0,0"
enable-hwhs = "AT&F"
init-string = "AT&F"
init-string = "AT+CNMI=1,1,0,0,0"
init-string = "AT+CMEE=1"
init-string = "AT+CMGF=1"

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
smsbox-id = box
sendsms-port = 13013
sendsms-chars = "0123456789+"
global-sender = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
sendsms-url = /cgi-bin/sendsms
sendota-url = /cgi-bin/sendota
#white-list =
#black-list =
#reply-couldnotfetch = 
#reply-couldnotrepresent = 
#reply-requestfailed =
#reply-emptymessage = 

group = smsbox-route
smsbox-id = box
smsc-id = NOKIA

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
user-allow-ip = "*.*.*.*"
max-messages = 1
concatenation = true


#DLR

group = mysql-connection
id = mydlr
host = localhost
username = root
password = passer
database = sms
# max count of connections that will be opened for dbpool
# default is 1
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

# SMS SERVICES

group = sms-service
keyword = default
text = "Aucun service n'a été specifié"

group = sms-service
keyword = jeux
post-url = "http://localhost/jeux.php?sender=%p&text=%r"
catch-all = true
max-messages = 1
concatenation = true
accept-x-kannel-headers = true


group = sms-service
keyword = CSPI
post-url = "http://localhost/smstv.php?sender=%p&text=%a"
catch-all = true
max-messages = 1
concatenation = true
accept-x-kannel-headers = true
accepted-smsc = at;+24207910101

