# 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

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
status-password = foo
admin-deny-ip = "*.*.*.*."
admin-allow-ip = "127.0.0.1"
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "access.log"
store-file = "/tmp/kannel.store"
log-file = "/tmp/bearerbox.log"
log-level = 0
wdp-interface-name = "*"
interface-name = 192.9.200.100
wap-service = "wsp/wtp"
unified-prefix = "+39,0039,039"

# http-proxy-host = "127.0.0.1"
# http-proxy-port = 8080
# http-proxy-exceptions = "127.0.0.1"
# http-proxy-username = "user"
# http-proxy-password = "password"
# ssl-certkey-file = "mycertandprivkeyfile.pem"



# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
global-sender = 13013
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "tmp/access.log"
access-log = "access.log"
white-list = "/gateway-1.4.0/test/whitelist.txt"
black-list = "/gateway-1.4.0/test/blacklist.txt"

# reply-couldnotfetch = 
# reply-couldnotrepresent = 
# reply-requestfailed =
# reply-emptymessage = 


# WAPBOX SETUP

group = wapbox
bearerbox-host = 127.0.0.1
log-file = "/tmp/wapbox.log"
log-level = 0
access-log = "/tmp/wapaccess.log"
syslog-level = none
timer-freq = 10
map-url = "http://mmsc/* http://localhost:1981/*"


--------------------------------------------------------------------------------------------------------------------------
# SMSC GSM
group = smsc
smsc = at
smsc-id = TEO
modemtype = nokiaphone
device = /dev/ttyACM0
speed = 9600
pin = 8367
validityperiod = 167
keepalive = 5
my-number = +393398576207
 # sms-center = +393359609600
alt-dcs = true


group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
detect-string2 = "Nokia 6230i"
init-string = "AT+CBC;+CSQ"
speed = 9600
enable-hwhs = "AT+IFC=2,2"
no-pin = false
no-smsc = false
message-storage = "SM"
need-sleep = false
enable-mms = true
# keepalive-cmd = "AT+CBC;+CSQ"
--------------------------------------------------------------------------------------------------------------------------


# SMSC Fake
# group = smsc
# smsc = fake
# host = 12345
# port = 10000
# connect-allow-ip = 127.0.0.1


# SMSC HTTP
# group = smsc
# smsc = http
# system-type = kannel
# send-url = ""
# port = 13013
# connect-allow-ip = 127.0.0.1
# username = matteo
# password = teo7sheva


# SEND-SMS USERS
group = sendsms-user
username = matteo
password = teo7sheva
default-sender = +393398576207
faked-sender = +393398576207
default-smsc = TEO
forced-smsc = TEO
user-allow-ip = "127.0.0.1"
max-messages = 3
conactenation = true


# 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"
# name = service_kannel
forced-smsc = TEO
default-smsc = TEO
# faked-sended =
max-messages = 1
concatenation = 1
# split-chars = 
# split-suffix = 
# omit-empty = 
# header =
# footer =
# allowed-prefix =
# denied-prefix =
# white-list =
# black-list =


# group = sendsms-user
# username = tester
# password = foobar
# user-deny-ip = ""
# heartbeat-freq = 30
# pid-file = "/tmp/wapbox.pid"
# log-file = "/tmp/wapbox.log"
# log-level = 0


# SMS SERVICES

group = sms-service
name = nothing
keyword = nop
aliases = "noppy;niente"
text = "Ciao a tutti!"
get-url = "http://localhost/service?phone=%p&text=%r&binary=%b&smsc=%i&time=%t"
# post-url = "http://"
file = start-smsc
accepted-smsc = TEO
# allowed-prefix = 
# denied-prefix = 
# catch-all = false
# send-sender = false
# strip-keyword = false
# faked-sender = 
max-messages = 1
# accept-x-kannel-headers = false
# assume-plain-text = false
# concatenation = false
# split-chars = 
# split-suffix = "+"
# omit-empty = true
# header =
# footer =
# prefix = 
# suffix =
# white-list =
# black-list =


# SMS SERVICE GET-URL EXAMPLE

group = sms-service
keyword = relay
get-url = "http://localhost:13013/sms?user=kannel&pass=rL4y&from=%p&to=%Ptext=%r"


# SERVICES

group = sms-service
keyword = complex
get-url = "http://localhost:13013/service?sender=%p&text=%r"
accept-x-kannel-headers = true
max-message = 1
concatenation = true

# SMS SERVICE black-list

# group = sms-service
# keyword = black-list
# text = "You are not alowed to use this service, Go away!"


# SMS SERVICE Default
# there should be default always

group = sms-service
keyword = default
text = "Nessun servizio specificato"


# PPG CORE SETUP, for defining the push request interface

group = ppg
ppg-url = /cgi-bin/sendsms
ppg-port = 8080
concurrent-pushes = 10
trusted-pi = true
users = 1
ppg-allow-ip = "127.0.0.1"
service-name = ppg
ppg-smsbox-id = dlrbox
default-smsc = TEO

# ppg-deny-ip = "*.*.*.*"
# ppg-ssl-port = 8081
# ssl-server-cert-file = "cert.pem"
# ssl-server-key-file = "key.pem"


# PPG USER SETUP, for authorizing a specific push user

group = wap-push-user
wap-push-user = teo
ppg-username = matteo
ppg-password = teo7sheva
allow-ip = 127.0.0.1
country-prefix = +39
default-smsc = TEO
white-list ="/gateway-1.4.0/test/whitelist.txt"

# allowed-prefix = "40;60;70"
# denied-prefix = 50
# white-list = http://localhost:8082/whitelist
# black-list =  http://localhost:8082/blacklist
# deny-ip = "*.*.*.*"
