#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = fcaadmin
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
store-type = file
store-location = "/var/log/kannel/bearerbox.store"
dlr-storage = internal

# SMSC SETUP: Clickatell HTTP
group = smsc
smsc = http
smsc-id = clickatell
system-type = clickatell
port = 13015
connect-allow-ip = "127.0.0.1;196.5.254.33;192.168.*.*"  #Click 196.5.254.33
system-id = 3228880
smsc-username = user
smsc-password = use
use-ssl = yes
send-url = "http://api.clickatell.com/http/sendmsg"
reconnect-delay = 60
denied-prefix = "35568;068;68" 

#SMSC SETUP: ZTE INCORPORATED GSM Modem
group = smsc
smsc = at
smsc-id = AMCZTE
modemtype = ztemodem
device = /dev/ttyUSB1
allowed-prefix = "35568;068;68"
sms-center = +355681000000
#sim-buffering = true
my-number = +355689010838

# Modem SETUP
group = modems
id = ztemodem
name = "ZTE"
#init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0;+CNMI=1,2,0,1,0;+CMGF=1"
detect-string = "ZTE INCORPORATED"
#need-sleep = true
#message-storage = "SM"
no-smsc = true
keepalive-cmd = "AT+CBC;+CSQ" 
broken = true

##################### SMSBOX SETUP ###############################
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13011
sendsms-chars = "0123456789 +-"
global-sender = "FZ Sh.p.k"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

# SEND-SMS USERS
group = sendsms-user
username = fcsuser
password = fcsuser
faked-sender = "FZ Sh.p.k"
max-messages = 3

# SMSBOX Route Configuration
#group = smsbox-route
#smsbox-id = nokiae90

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

# SERVICES : Service to Print Name and Phone Number
group = sms-service
keyword = print
get-url = "http://192.168.1.15/service/print.php?sender=%p&text=%r"
accept-x-kannel-headers = true
max-messages = 1
concatenation = true

# there should be default always
group = sms-service
keyword = default
text = "Thank You"

