# Kannel configuration SMSC_1
#
# Site : Belgium
# Modem : yes

#########################################################################
# Local configuration							#
#########################################################################
# The bearerbox config
group = core
admin-port = 13000
admin-password = "xxxxxxxx"
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.*.*"
status-password = "xxxxxxxxxxx"
smsbox-port = 13001
log-level = 0
log-file = "/var/log/kannel/kannel.log"
access-log = "/var/log/kannel/kannel.access"
store-file = "/var/log/kannel/kannel.store"
sms-resend-retry = 10

# SMSbox config
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13010
smsbox-id = SMSBOX_1
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsbox.access"
log-level = 1
global-sender = 0032xxxxxxxxx

#########################################################################
# Modem configuration							#
#########################################################################
# Siemens MC35i
group = modems
id = MODEM_MC35i
name = MODEM_MC35i
detect-string = "SIEMENS"
detect-string2 = "MC35"
init-string = "AT+CNMI=3,2,0,1,1"
enable-hwhs = "AT\\Q3"
#reset-string = "AT+CFUN=1"
speed = 115200
need-sleep = true

#########################################################################
# Users configuration							#
#########################################################################
group = sendsms-user
username = sms_user
password = sms_user
name = SMSUSER_1
max-messages = 3
concatenation = true
user-allow-ip = "127.0.0.1;192.168.*.*"
omit-empty = true

#########################################################################
# Service configuration							#
#########################################################################
# By default, discard all incoming SMSes
group = sms-service
keyword = default
omit-empty = true
exec = "/bin/false"

#########################################################################
# SMS Centers								#
#########################################################################
# SMSC_1
group = smsc
smsc = at
smsc-id = SMSC_1
preferred-prefix = "00324;+324;00277;+227"
# preferred-smsc-id = SMSC_1
# allowed-smsc-id = "SMSC_1;SMSC_2"
modemtype = MODEM_MC35i
device = /dev/ttyUSB0
pin = xxxx
keepalive = 50
log-file = "/var/log/kannel/smsc.log"
log-level = 1
throughput = 0.5
max-error-count = 5
my-number = 0032xxxxxxxxxxx

# SMSC_2
group = smsc
smsc = http
system-type = kannel
smsc-id = SMSC_2
smsc-username = sms_user
smsc-password = sms_user
preferred-prefix = "00861;+861;00852;+852;00659;+659;00601;+601"
# preferred-smsc-id = SMSC_2
# allowed-smsc-id = "SMSC_1;SMSC_2"
port = 13xxx
send-url = "http://192.168.xxx.xxx:13010/cgi-bin/sendsms"