Discussion:
different opensmppbox-user routing to different smscs
Steven König
2011-10-20 13:57:26 UTC
Permalink
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&charset=%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&charset=%C&msgid=%i"
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404
Andreas Fink
2011-10-20 14:15:42 UTC
Permalink
Content preview: On 20.10.2011, at 15:57, Steven König wrote: > 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.
[...]

Content analysis details: (0.0 points, 3.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 NORMAL_HTTP_TO_IP URI: Uses a dotted-decimal IP address in URL
X-BeenThere: ***@kannel.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Development mailing list <devel.kannel.org>
List-Unsubscribe: <http://www.kannel.org/mailman/options/devel>,
<mailto:devel-***@kannel.org?subject=unsubscribe>
List-Archive: <http://www.kannel.org/pipermail/devel/>
List-Post: <mailto:***@kannel.org>
List-Help: <mailto:devel-***@kannel.org?subject=help>
List-Subscribe: <http://www.kannel.org/mailman/listinfo/devel>,
<mailto:devel-***@kannel.org?subject=subscribe>
Sender: devel-***@kannel.org
Errors-To: devel-***@kannel.org
Archived-At: <http://permalink.gmane.org/gmane.comp.mobile.kannel.devel/27812>
Post by Steven König
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.
this should be smsc-id, not smscbox-id
two different things.
Post by Steven König
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
user1 pass1 smpp1 *.*.*.*
user2 pass2 smpp2 *.*.*.*
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"
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&charset=%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&charset=%C&msgid=%i"
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404
Steven König
2011-10-24 07:15:02 UTC
Permalink
Content preview: Hi, so how can I setup opensmppbox and bearer box, so I can
route smpp-client 1 to bearerbox-smsc 1 and smpp-client 2 to bearerbox-smsc
2? Am 20.10.2011 16:15, schrieb Andreas Fink: > On 20.10.2011, at 15:57,
Steven König wrote: > >> 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. > this should be smsc-id, not smscbox-id
two different things. > >> 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?
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 = [...]

Content analysis details: (-0.7 points, 3.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(skfastcom[at]googlemail.com)
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust
[74.125.82.47 listed in list.dnswl.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 NORMAL_HTTP_TO_IP URI: Uses a dotted-decimal IP address in URL
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-BeenThere: ***@kannel.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Development mailing list <devel.kannel.org>
List-Unsubscribe: <http://www.kannel.org/mailman/options/devel>,
<mailto:devel-***@kannel.org?subject=unsubscribe>
List-Archive: <http://www.kannel.org/pipermail/devel/>
List-Post: <mailto:***@kannel.org>
List-Help: <mailto:devel-***@kannel.org?subject=help>
List-Subscribe: <http://www.kannel.org/mailman/listinfo/devel>,
<mailto:devel-***@kannel.org?subject=subscribe>
Sender: devel-***@kannel.org
Errors-To: devel-***@kannel.org
Archived-At: <http://permalink.gmane.org/gmane.comp.mobile.kannel.devel/27819>

Hi,
so how can I setup opensmppbox and bearer box, so I can route
smpp-client 1 to bearerbox-smsc 1 and smpp-client 2 to bearerbox-smsc 2?
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.
this should be smsc-id, not smscbox-id
two different things.
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
user1 pass1 smpp1 *.*.*.*
user2 pass2 smpp2 *.*.*.*
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"
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&charset=%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&charset=%C&msgid=%i"
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404
Rene Kluwen
2011-10-24 13:43:52 UTC
Permalink
Make two smppboxes, with a different port.
1 routes to bearerbox-smsc-1 and the other to bearerbox-smsc-2.

== Rene

-----Original Message-----
From: devel-***@kannel.org [mailto:devel-***@kannel.org] On Behalf
Of Steven König
Sent: Monday, 24 October, 2011 09:15
To: Andreas Fink
Cc: ***@kannel.org Devel
Subject: Re: different opensmppbox-user routing to different smscs

Hi,
so how can I setup opensmppbox and bearer box, so I can route
smpp-client 1 to bearerbox-smsc 1 and smpp-client 2 to bearerbox-smsc 2?
Post by Andreas Fink
Post by Steven König
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.
Post by Andreas Fink
Post by Steven König
Since i understood the documentation, the routing takes the third value
in the smpp-logins of each value as smsbox-id for teh request.
Post by Andreas Fink
this should be smsc-id, not smscbox-id
two different things.
Post by Steven König
Then it passes the sms with this smsbox-id (e.g. smpp1 for sms originated
by user1) to the bearerbox.
Post by Andreas Fink
Post by Steven König
The bearerbox takes the assigned sms-route and routes the sms to the
smsc-id specified in the sms-route.
Post by Andreas Fink
Post by Steven König
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).
Post by Andreas Fink
Post by Steven König
What configuration-parameter is missing for such a routing?
Thanks,
Steven König
user1 pass1 smpp1 *.*.*.*
user2 pass2 smpp2 *.*.*.*
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"
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"
Post by Andreas Fink
Post by Steven König
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"
Post by Andreas Fink
Post by Steven König
status-success-regex = "Sent."
status-permfail-regex = "error"
status-tempfail-regex = "retry later"
generic-status-sent = 200
generic-status-error = 404
Rene Kluwen
2011-10-21 20:46:22 UTC
Permalink
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: devel-***@kannel.org [mailto:devel-***@kannel.org] On Behalf
Of Steven König
Sent: Thursday, 20 October, 2011 15:57
To: ***@kannel.org 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
Loading...