#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 = 13015
admin-password = hard2guess
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
dlr-storage = mysql
smsbox-port = 13018
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 1

#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"

group = smsc
smsc-id = huawei_E220
smsc = at
modemtype = huawei_e220
device= /dev/ttyUSB0
my-number = +919*******3
connect-allow-ip = 127.0.0.1
log-level = 0

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = kannel
password = kannel
database = kannel

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

group = modems
id = huawei_e220
name = "Huawei E220"
detect-string = "huawei"
#init-string = "ATZ"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=2,1,2,2,0"   
message-storage = me
#speed = 460800
#message-start = 0

group = smsbox
smsbox-id = mysmsc
bearerbox-host = 202.*********
#bearerbox-port = 13018
sendsms-port = 13017
global-sender = +91941********
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

group = sendsms-user
username = gndec
password = hard2guess
concatenation= true
max-messages = 10

group = sms-service
keyword-regex = .*
catch-all = yes
accepted-smsc = huawei_e220
max-messages = 3
get-url = "http://localhost/sms.php?phone=%p&text=%a"
