Kannel and receive SMS from other SMPP to my system

user1303913 picture user1303913 · Apr 3, 2012 · Viewed 8.4k times · Source

I'm using kannel SMPP (kannel.org) and for me need more information how to receive SMS messages from other SMPP server.

I know, for me need to add to kannel config this:

group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://website/sms.php?sender=%p&text=%a"

I need to add user for SMS pull'ing, but found only this example:

group = sendsms-user
username = ***************
password = hard2guess
concatenation= true
max-messages = 10000

But here is for sending SMS user, not for pull'ing.

Can somebody tell me more about how to create account for other SMPP server and receive SMS messages from other SMPP server?

Answer

3G Telecoms picture 3G Telecoms · Jun 8, 2012

It sounds like you want to allow a client to connect to you on SMPP and send messages via your system. If this is correct then you need to be a SMPP SMSC and currently your kannel is only acting as an ESME .

To get Kannel to act as a SMSC you need to install a version of SMPP which will act as a SMSC and allow clients to connect to send a message. Because Kannel doesn't have this built in you can try installing the open source software called OpenSMPPBox

OpenSMPPBox is included in the Addons folder of the latest Kannel development release (version 1.5.0). You'll need to install this via SVN to get the code and then compile this on your machine to get OpenSMPPBox up and running. You have to also download the latest version of kannel's source code in order to compile OpenSMPPBox.

Once you have installed OpenSMPPBox it connects to Kannel's Bearerbox and operates as a way to allow clients to connect to you on SMPP and then route messages straight to Kannel. When it is running you can set a username and password for a client and give them your server IP to connect.

There's a Manual for OpenSMPPBox which will help with the installation and configuration.