Discussion:
[Help with Kannel Configuration for incoming and outgoing (Receive and Send ) SMS using OPENSMPPBOX, SQLBOX]
sekabira yasin
2018-04-04 04:54:12 UTC
Permalink
Hello there,

I kindly need some help/pointers on how i can configure Kannel to receive
and send sms with Opensmppbox and SQLBox addons..

I'm new to kannel, i have set up my kannel with a fakesmsc, its up and
running.. though i need to configure it with OPENSMPPBOX and SQLBOX, this
is because i wish to have the incoming messages to be stored in a database,
and the OPENSMPPBOX to provide me a smsc settings such that i can receive
messages from other SMPP Providers / ESMEs, for outgoing/sending messages,
these should also be stored in the databases, plus the dlrs..

here is my kannel.conf

# Main kannel config file
#---------------------------------------------------------
# BEARERBOX CONFIGURATIONS
# CORE
group = core
dlr-storage = internal
admin-port = 13000
admin-password = bar
#status-password = <status-password>
admin-allow-ip = '*.*.*.*'
smsbox-port = 13001
log-level = 0
log-file = "/etc/kannel/logs/kannel.log"
box-allow-ip = '*.*.*.*'

#---------------------------------------------------------
# This is a fake smsc connection, _only_ used to test the
# system and services. It really cannot relay messages to
# actual handsets!
group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
log-level = 0
connect-allow-ip = 127.0.0.1

#---------------------------------------------------------
# SMSBOX SETUP
group = smsbox
smsbox-id = mysmsbox
bearerbox-host = A.B.C.D # This is a public IP
sendsms-port = 13013
global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/logs/smsbox.log"
log-level = 0
access-log = "/etc/kannel/logs/access.log"

#---------------------------------------------------------
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar

group = smsbox-route
smsbox-id = mysmsbox
smsc-id = FAKE

#---------------------------------------------------------
# SERVICES
group = sms-service
keyword = nop
text = "You asked nothing and i did it!"

# Default
group = sms-service
keyword = default
text = "No service specified"


---------------------------------------------------------------
Here is my bearer box status, i have installed Kannel version 1.4.4, my
server is in the Cloud at Linode.

$curl 'http://A.B.C.D:13000/status?password=bar'
Kannel bearerbox version `1.4.4'.
Build `Mar 27 2018 06:58:08', compiler `4.8.5 20150623 (Red Hat 4.8.5-16)'.
System Linux, release 4.15.8-x86_64-linode103, version #1 SMP Fri Mar 9
21:02:39 UTC 2018, machine x86_64.
Hostname li1509-36.members.linode.com, IP A.B.C.D.
Libxml version 2.9.1.
Compiled with MySQL 5.6.39, using MySQL 5.6.39.
Using native malloc.


Status: running, uptime 0d 2h 26m 49s

WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec

DLR: received 0, sent 0
DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storage

Box connections:
smsbox:mysmsbox, IP A.B.C.D (0 queued), (on-line 0d 2h 25m 49s)


SMSC connections:
FAKE[FAKE] FAKE:10000 (connecting, rcvd: sms 0 (0.00,0.00,0.00) /
dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0
(0.00,0.00,0.00), failed 0, queued 0 msgs)

------------------------------------------------------------------------------------------

Any Help is highly appreciated...
--
Regards
-------------------------------
*Sekabira Yasin*
sekayasin.me
@sekayasin9 <https://twitter.com/sekayasin9>
---------------------------------------------------------------------------------------------------------------------

*Chief Technical Ninja *@katwecolab <https://twitter.com/katwecolab>* | *@
patchedUG <https://twitter.com/patchedUG>* | Mamawalu Foundation | Kompyuta
Giants*
-----------------------------------------------------------------------------------------------------------------------
#Topooowa
Loading...