2

我正在使用 kannel SMPP (kannel.org),我需要更多信息来了解如何从其他 SMPP 服务器接收 SMS 消息。

我知道,对我来说需要添加到 kannel 配置:

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

我需要为 SMS pull'ing 添加用户,但只找到了这个例子:

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

但这里是用于发送 SMS 用户,而不是用于拉取。

有人能告诉我更多关于如何为其他 SMPP 服务器创建帐户并从其他 SMPP 服务器接收 SMS 消息的信息吗?

4

3 回答 3

2

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.

于 2012-06-08T13:19:51.713 回答
2

如果您有 SMPP 帐户,添加 SMPP 信息很容易,您只需添加一个新的SMPP group

示例 SMPP 配置(收发器模式)

group = smsc
smsc = smpp
system-type=
smsc-username = user
smsc-password = pass
host = x.x.x.x
port = 10000
transceiver-mode = true
my-number = 123456
interface-version = 34
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
enquire-link-interval = 60
reconnect-delay = 60
log-file = "/var/log/kannel/smsc.log"
log-level = 1

我希望这有帮助

谢谢

:)

于 2012-04-06T10:44:29.587 回答
0

您可能需要从 SMPP 提供商那里验证的一件非常重要的事情是它们正在运行的版本。如果版本低于 3.4,则需要通过在 kannel.conf 文件中将其注释掉来关闭收发器模式。不这样做将导致 Kannel 无限循环尝试连接到 SMPP 却没有任何成功。

祝你好运。

于 2018-09-26T03:37:04.130 回答