gpt4 book ai didi

java - Logica OpenSMPP 对 USSD 的支持

转载 作者:太空宇宙 更新时间:2023-11-04 07:27:02 26 4
gpt4 key购买 nike

我正在使用 Logica OpenSMPP ( http://opensmpp.org/ ) 通过 SMPP 协议(protocol)管理消息。我有一个服务器,可以回答我的 SMS 和 USSD 消息,并且我正在开发一个客户端。我已经成功地通过 SMS 发送 DeliverSM 消息并从服务器获取 SubmitSM 响应:首先我启动 SMSC,然后执行类似的操作:

        DeliverSM request = new DeliverSM();
request.setSourceAddr(from);
request.setDestAddr(to);
try {
request.setShortMessage(message);
} catch (WrongLengthOfStringException e) {
log.error("Error during setShortMessage", e);
}
request.setRegisteredDelivery((byte) 0);

new Transmitter(this.connection).send(request);

但是我在对 USSD 做同样的事情时遇到了一些问题。我知道,我必须以某种方式使用以下内容(摘自 SMPP V3.4 规范):

The ussd_service_op parameter is required to define the USSD service operation when SMPP is being used as an interface to a (GSM) USSD system.

我需要执行哪些步骤才能了解我的客户端向服务器发送 SMS 和 USSD 消息?

最佳答案

这个project主机发送 USSD 的代码。您可以考虑浏览代码以了解它是如何完成的,然后在 Logica OpenSMPP 中实现类似的功能。

关于java - Logica OpenSMPP 对 USSD 的支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18383532/

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