Hello,
I'm really struggling to get to grips with kannel support for multiple smsc-id.
All I'm trying to do is
a) support connections to 2 different smpp ports
b) in event that both are down, use an http smsc to simply re-post the SMS to another kannel
instance on another server (test411), with its own smpp config
c) make sure DLR get routed back to the smsc-id that sent the SMS
My kannel.conf below - would REALLY appreciate any help !
# CORE GROUP #################################################################
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = xxx
log-file = "/tmp/kannel.log"
access-log = "/tmp/access.log"
log-level = 3
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
store-file = "/tmp/kannel.store"
dlr-storage = mysql
################################# includes ################################# #include = sc_mysqldlr.conf
#SQL DLR Group group = mysql-connection id = dlrdb host = devdb1 mysql-username = sc mysql-password = xx database = scdev1
# mysql fields defined group = dlr-db id = dlrdb 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
# SMSC SMPP ########################################################### group = smsc smsc = smpp smsc-id = smpp1 denied-smsc-id = smpp2;smpp3;smpp4 host = xxx.yyy.zzz.zzz port = 9000 receive-port = 9000 smsc-username = xx smsc-password = yy system-type = MT msg-id-type = 0x01
# SMSC SMPP ########################################################### group = smsc smsc = smpp smsc-id = smpp2 denied-smsc-id = smpp1;smpp3;smpp4 host = xxx.yyy.zzz.xxx port = 9000 receive-port = 9000 smsc-username = xx smsc-password = yy system-type = MT msg-id-type = 0x01
group = smsc smsc = http smsc-id = TEST411 system-type = kannel smsc-username = sc smsc-password = xxxx port = 13015 send-url = "http://test411:13013/cgi-bin/sendsms"
# SMSBOX SETUP ######################################################## group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = +xxxxxxxxx #sendsms-chars = "0123456789 +-" log-file = "/tmp/smsbox.log" log-level = 3 #access-log = "/tmp/access.log"
# SEND-SMS USERS ###################################################### group = sendsms-user username = sc password = k3nn3l forced-smsc = smpp1
group = sendsms-user username = sc password = k3nn3l forced-smsc = smpp2
# SERVICES ############################################################ group = sms-service accepted-smsc = smpp1 keyword = nop text = "smpp1 service"
group = sms-service accepted-smsc = smpp2 keyword = nop text = "smpp2 service"
group = sms-service accepted-smsc = TEST411 keyword = nop text = "TEST411 service"
# DEFAULT SERVICE ##################################################### group = sms-service keyword = default text = "No service specified"
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger