SMS routing based on smsc-id does not work properly.

Roman <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Dear, Sirs!


I have two different SMSC(one is SMPP-based, another one is HTTP-based ) in configuration file and have some problems with
routing. I want to route reply to the same SMSC, which receive
request. I make configuration as in documentation
http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4033
but it does not work properly.

CONFIG:

group = core
admin-port = XXXX
smsbox-port = XXXX
log-file = "kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "access.log"
store-file = "kannel.store"


# SMSC CONNECTIONS

group = smsc
smsc = smpp
smsc-id = SMSC1
denied-smsc-id = SMSC2
transceiver-mode = 1
host = SMPP SMSC IP Addr
port = XXXX
smsc-username = "user"
smsc-password = "pass"
system-type = "VMA"


group = smsc
smsc = http
smsc-id = SMSC2
denied-smsc-id = SMSC1
system-type = kannel
smsc-username = "user"
smsc-password = "pass"
port = XXXX
send-url = "http://XXX.XXX.XX/sms"
connect-allow-ip = "HTTP SMSC IP"


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-chars = "0123456789 +-"
log-file = "smsbox.log"
log-level = 0
access-log = "access.log"

group = sms-service
keyword = default
name = "test1"
max-messages = 10
concatenation = false
allowed-receiver-prefix = 1111
accepted-smsc = SMSC1
split-chars = " "
omit-empty = true
text = "TEST1"

group = sms-service
keyword = default
name = "test2"
max-messages = 10
concatenation = false
allowed-receiver-prefix = 2222
accepted-smsc = SMSC2
split-chars = " "
omit-empty = true
text = "TEST2"

If I send sms request from SMSC1, kannel send reply back via SMSC2, but if i send
sms request from SMSC2, kannel sends reply back via SMSC2 too.
Then i set config block of SMSC2 above SMSC1. And if I send sms
request from SMSC1, kannel sends reply back via SMSC1, but if i send
sms request from SMSC2 kannel send reply back via SMSC1 too.

Only if i set routing based on "allowed-prefix" in my config, then all
work fine. But kannel users guide shows than i can do routing based on
"smsc-id, denied-smsc-id, accepted-smsc" params.

What i do wrong?

Thank you beforehand.


-- 
Best regards, Roman.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.