RE: different opensmppbox-user routing to different smscs

"Rene Kluwen" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi Steven,

The "solution" (or workaround if you want to call it that way) is to have
two instances of opensmppbox, each listening on a separate port.
Client1 connects to opensmppbox1 which has route-to-smsc = smsc1
Client2 connects to opensmppbox2 which has route-to-smsc = smsc2

== Rene

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Steven König
Sent: Thursday, 20 October, 2011 15:57
To: [email protected] Devel
Subject: different opensmppbox-user routing to different smscs

Hi,

i have another question on opensmppbox and bearerbox.

I would like to route two users who connect to opensmppbox via smpp to 
two different smscs in the bearerbox.
Since i understood the documentation, the routing takes the third value 
in the smpp-logins of each value as smsbox-id for teh request.
Then it passes the sms with this smsbox-id (e.g. smpp1 for sms 
originated by user1) to the bearerbox.
The bearerbox takes the assigned sms-route and routes the sms to the 
smsc-id specified in the sms-route.

Thats how I understood the Documentation. But with the test-scenario 
below it doesn't work. The messages from user1 are sent over both smscs 
(smsc1 and smsc2).

What configuration-parameter is missing for such a routing?

Thanks,
Steven König


Test-Scenario:

smpplogins.txt:
user1 pass1 smpp1 *.*.*.*
user2 pass2 smpp2 *.*.*.*


opensmppbox.conf:
group = opensmppbox
opensmppbox-id = smppbox1
opensmppbox-port = 2346
bearerbox-host = localhost
bearerbox-port = 13001
log-level = 0
log-file = /var/log/kannel/opensmppbox.log
our-system-id = KANNELSMSC
smpp-logins = "/etc/kannel/smpplogins.txt"


kannel.conf:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = "/var/log/kannel/kannel-core.log"
log-level = 0
access-log = "/var/log/kannel/kannel-access.log"
store-file = "/var/spool/kannel/kannel_core.store"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

# SMSBOX SETUP

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox_core.log"
log-level = 0
access-log = "/var/log/kannel/smsbox_access.log"
global-sender = 0815

group = smsbox-route
smsbox-id = "smpp1"
smsc-id = "smsc1"

group = smsbox-route
smsbox-id = "smpp2"
smsc-id = "smsc2"

group = smsc
smsc = http
system-type = generic
port = 13015
smsc-id = smsc1
denied-smsc-id = "smsc2"
send-url = 
"http://192.168.10.99/sendtest.php?from=%P&to=%p&text=%b&dcs=%O&udh=%u&chars
et=%C&msgid=%i"
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404

group = smsc
smsc = http
system-type = generic
port = 13016
smsc-id = smsc2
denied-smsc-id = "smsc1"
send-url = 
"http://192.168.10.100/sendtest.php?from=%P&to=%p&text=%b&dcs=%O&udh=%u&char
set=%C&msgid=%i"
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404
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.