Normal way would be to use 2 bbs. Fancy way would be to use a single one,
but for what purpose? You would end up with an infinite loop. The idea is to
be able to connect transparently other SMPP clients to your infrastructure
and appear as another aggregator.
BR,
Nikos
----- Original Message -----
From: Emmanuel CHANSON
To: Nikos Balkanas
Cc: users
Sent: Monday, October 11, 2010 10:00 AM
Subject: Re: smsbox to opensmppbox routing
Ok I understand a little more,
Is it relevant if I use only one bearerbox and configure this bearerbox to
be a client, to connect to smppbox using smsc = smpp ? Then add a routing ?
Or do I have to use 2 differents bearerbox for this like you advise?
Emmanuel
2010/10/11 Nikos Balkanas <nbalka...@gmail.com>
Hi,
You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to
bearerbox as another smsbox, but it cannot connect to directly to smsbox.
You can connect an SMPP client (ie ESME - another bearerbox) to it, and it
will forward SMS to bearerbox for routing to an smsc.
HTH,
Nikos
----- Original Message ----- From: Emmanuel CHANSON
To: users
Sent: Monday, October 11, 2010 8:34 AM
Subject: smsbox to opensmppbox routing
Hello,
I am just discovering opensmppbox (latest svn release compiled and installed
with kannel & sqlbox svn)
My purpose is to send SMS to an smpp application for tests.
For this I want to use smsbox cgi script but I got a problem of routing from
bearerbox.
How can I route these SMS from smsbox to opensmppbox (itself linked to a
smpp application), do I have to use smsbox-route ?
Below my config and logs:
bearerbox.log:
...
2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received
2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message
to <1065>, rejected.
2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no
router!
2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
kannel.conf:
-----------------
group = core
admin-port = 13000
admin-password = xxx
status-password = xxx
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
#http-proxy-host = "127.0.0.1"
#http-proxy-port = 8080
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#store-type = file
store-type = spool
#store-location = /var/log/kannel/kannel.store
store-location = /var/spool/kannel
dlr-storage = mysql
#black-list = "http://127.0.0.1/kannel/black-list.txt"
white-list-regex = ^\+xxx[0-9]{6}$
#
# Smsbox related
# Sqlbox at that moment
smsbox-port = 13001
#
# Wapbox related
wapbox-port = 13002
#udp-deny-ip = "*.*.*.*"
udp-allow-ip = "127.0.0.1"
#wdp-interface-name = "*"
####################################
# Wapbox
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
log-level = 0
syslog-level = none
####################################
# PPG
group = ppg
#ppg-url = /wappush
ppg-url = /kannel/php-admin/wappush.php
ppg-port = 8080
concurrent-pushes = 100
users = 1024
ppg-allow-ip = "127.0.0.1"
trusted-pi = true
service-name = ppg1
group = wap-push-user
wap-push-user = wappush
ppg-username = xxx
ppg-password = xxx
allow-ip = "127.0.0.1"
####################################
# SMSC CONNECTIONS - GLOBAL FIELDS
# SMSC Fake
group = smsc
smsc = fake
smsc-id = "FakeSMSC-1"
allowed-smsc-id = "FakeSMSC-1"
host = localhost
port = 10001
connect-allow-ip = 127.0.0.1
#############################
# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = xxxx
password = xxxxxx
database = kanneldlr
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 1
# MySQL Group
group = dlr-db
id = mydlr
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
#############################
# SMSBOX SETUP
# NOT USED
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#sendsms-chars = "0123456789 +-"
global-sender = +xxxxxxxxx
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =
#############################
group = smsbox-route
smsbox-id = mmg
opensmppbox.conf:
-----------------------------
# sample opensmppbox.conf
group = core
dlr-storage = mysql
# this group defines your opensmppbox
group = opensmppbox
# our boxc type
opensmppbox-id = smppbox
# the port to listen on for smpp connections
opensmppbox-port = 6201
# we connect to the following host as a box
bearerbox-host = localhost
bearerbox-port = 13001
log-level = 0
log-file = /var/log/kannel/opensmppbox.log
our-system-id = opensmppbox
#route-to-smsc = smpp
# see sample smpplogins.txt
smpp-logins = "/etc/kannel/smpplogins.txt"
# the following is just standard dlr configuration
group = mysql-connection
id = mydlr
host = localhost
username = xxxx
password = xxxxxx
database = kanneldlr
# you can increase this upon a higher load
max-connections = 1
group = dlr-db
id = mydlr
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 = boxcid
opensmpplogin.txt:
---------------------------
mmg mmg mmg
Regards,
Emmanuel