在.NET中创建短信网关
我想使用 PDU 编码器/解码器类在 .NET 中开发 SMS 网关。它对我来说工作正常,但问题是接收多部分短信。我想通过分段和重组来处理这些消息,就像 Ozeki SMS 网关一样。 Ozeki SMS 网关将每条多部分 SMS 存储在一个文件中;我想做同样的事情。
如果有人有处理传入的多部分短信的经验,我将不胜感激任何关于如何实现这一点的解释或示例。预先感谢您的任何帮助。
I want to develop an SMS gateway in .NET, using PDU encoder/decoder classes. It's working fine for me, but the problem is receiving multipart SMS messages. I want to handle these messages with segmentation and reassembly, like Ozeki SMS gateway. Ozeki SMS gateway stores every multipart SMS in a file; I want to do the same thing.
If anyone has any experience in handling incoming multipart SMS messages, I would appreciate any explanations or examples of how to implement this. Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些称为串联短信,有关序列/总计/当前部分的信息可在 PDU UDH 标头中找到每个传入消息部分的。
您可以缓存每条传入消息,然后在收到最后一条消息时重新组装它们。
These are called Concatenated SMS, information about sequence/total/current parts is available in the PDU UDH header of each incoming message part.
You would cache each incoming message then reassemble them when the final one is received.