gpt4 book ai didi

smpp - 如何通过 smpp 连接接收短信 - Kannel

转载 作者:行者123 更新时间:2023-12-05 00:59:39 27 4
gpt4 key购买 nike

我通过来自 Kannel 的 smpp 连接(使用 selenium SmppSim)发送消息并且它有效。但是不知何故,当我尝试接收消息时,或者换句话说,当我尝试从 SmppSim 发送消息时,它不起作用。 SmppSim队列的MO消息进入MO队列。

我试过这些东西。

  1. 使用相同的端口发送和接收 (Kannel/SmppSim)。
  2. 使用不同的端口进行发送和接收 (Kannel/SmppSim)。
  3. 两个组用于发送和接收相同的 smsc-smpp。 (可能是错误的)

现在我使用端口 2775 进行发送,使用端口 2776 进行接收。

#kannel.conf
group=smsc
smsc=smpp
....
port = 2775
receive-port = 2776
transceiver-mode = true
....

在 SmppSim 中

#smppsim.props
SMPP_PORT=2775
....
SYSTEM_IDS=smppclient
PASSWORDS=password
OUTBIND_ENABLED=true
OUTBIND_ESME_IP_ADDRESS=127.0.0.1
OUTBIND_ESME_PORT=2776
OUTBIND_ESME_SYSTEMID=smppclient
OUTBIND_ESME_PASSWORD=password
....

当我运行 bearerbox 时,它显示如下。 (短信发送正常)

....
connect failed
System error 111: Connection refused
ERROR: error connecting to server `localhost' at port `2776'
SMPP[SMPPSim]: Couldn't connect to server.
SMPP[SMPPSim]: Couldn't connect to SMS center (retrying in 10 seconds).
....

我该如何配置?

谢谢!

最佳答案

请阅读 SMPP v3.4 规范,第 2.2.1 部分。

The purpose of the outbind operation is to allow the SMSC signal an ESME to originate a bind_receiver request to the SMSC.

因此用于SMSC(SMPPSim)连接到ESME(Kannel)并请求回调连接。

但是,您可以运行几个监听不同端口的 SMPPSim 实例。在这种情况下,每个实例都应使用自己的配置文件。

关于smpp - 如何通过 smpp 连接接收短信 - Kannel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8555120/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com