Configuration Issue (I Think)

Eric Turner <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CA+Ra-z1mvARoE+oxm2huK5GcvdfJnZyd5ZJq9fnWE5Tao5_W=w@mail.gmail.com>
My overall goal is to provide an smpp interface that our customers can use.
 We provide our customers a way to agnostically communication throw a
interface they are familiar with to a variaty of sources.

We are using kannel and I found sqlbox and opensmppbox.  They look like
they will work perfectly.  I have it set  up so that I can received a
message via smpp it makes it to the send_sms table in the database and a
submit_sm_resposne is returned.  Now I would like the be able to inject
that message into my system.  Let my system do the necessary logic and
processing and then pass it on to the properly smsc or other delivery
method.

Basically what I am looking for is an SMPP interface into my system.  I
need to get the message and queue it to the properly delivery method.  And
then update our customer of status as that happens.

Is there a way that I can get one of the "boxes" to inject the received
smpp message into my system?
Is there a way for me to inject a status as it moves through our system
back into one of the boxes and it will trigger a deliver_sm?

OS: Centos 5.2
Kannel Version: checked out trunk 6/29/2012 (rev 4979)
OpensmppBox Version: checked out trunk 6/29/2012 (rev 4979)
SQL Version: checked out trunk 6/29/2012 (rev 4979)
Libxml: Libxml2  2.7.6
Multi Core VM machine

To test I am using a seperate VM machine (same configuration) that talks to
it via kannel.

Eric Turner
sample_kannel.conf (application/octet-stream, 2.2 KB)
group = core
admin-port = 13000
admin-allow-ip = "*.*.*.*"
smsbox-port = 13001
wapbox-port = 13004
admin-password = [cut]
log-level = 0
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/bearerbox.access"
store-file = "/var/log/kannel/kannel.store.sms"
#wdp-interface-name = "*"
#unified-prefix = "+358,00358,0;+,00"
dlr-storage = mysql

group = smsbox
smsbox-id = "main_box"
bearerbox-host = localhost
log-level = 0
mo-recode = true
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsbox.access"
#sendsms-port = 13005
#sendsms-chars = "0123456789 "
#reply-emptymessage = ""

group = wapbox
bearerbox-host = 127.0.0.1
access-log = "/var/log/kannel/wapbox.access"
log-file = "/var/log/kannel/wapbox.log"
smart-errors = true

group = smsbox-route
smsbox-id = main_box
smsc-id = smscid
shortcode = "12345;12346"

group = smsc
smsc = smpp
host = [cut]
port = 8100
smsc-id = smscid
allowed-smsc-id = smscid
system-type = kannel
smsc-username = [cut]
smsc-password = [cut]
transceiver-mode = true
interface-version = 34
source-addr-ton = 3
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
enquire-link-interval = 20
throughput = 18

group = smpp-tlv
name = carrier_id
tag = 0x2150
type = integer
length = 2

group = smpp-tlv
name = program_id
tag = 0x2157
type = octetstring
length = 10

group = smpp-tlv
name = response_code
tag = 0x2153
type = integer
length = 2

group = smpp-tlv
name = receipted_message_id
tag = 0x001E
type = octetstring
length = 30

group = sms-service
keyword = default
send-sender = true
catch-all = true
post-url = [cut]
max-messages = 0

# SEND-SMS USERS
group = sendsms-user
username = sms_user
password = sms_user123
max-messages = 3
concatenation = 1

#DLR storage
group = mysql-connection
id = mydlr
host = [cut]
username = [cut]
password = [cut]
database = kannel
max-connections = 1

group = dlr-db
id = mydlr
table = dlr_log_smpp
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
sample_opensmppbox.conf (application/octet-stream, 781 B)
group = core
dlr-storage = mysql

group = opensmppbox
opensmppbox-id = "movable_redirect"
opensmppbox-port = 9100
bearerbox-host = 127.0.0.1
bearerbox-port = 1303
log-level = 0
log-file = "/var/log/kannel/opensmppbox.log"
our-system-id = "mova_redirect"
use-systemid-as-smsboxid = true
route-to-smsc = smscid
smpp-logins = "/usr/local/kannel/clients.txt"
box-dlr-storage = mysql

group = mysql-connection
id = mydlr
host = [cut]
database = kannel
username = [cut]
password = [cut]
max-connections = 3

group = dlr-db
id = mydlr
table = dlr_log_smpp
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 = box_id
sample_sqlbox.conf (application/octet-stream, 407 B)
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
smsbox-port = 1303
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/var/log/kannel/sqlbox.log"
log-level = 0

group = mysql-connection
id = sqlbox-db
host = [cut]
port = 3306
username = [cut]
password = [cut]
database = kannel
max-connections = 3
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.