SMPP 二进制消息
SMPP 中区分文本短信和二进制短信的参数是什么?
我假设这两条消息都编码在 submitSM
对象中。如果没有,请说明 SMPP 二进制消息如何编码到 SMS 中。
What are the parameters which differentiates a text SMS and binary SMS in SMPP?
I assume both the messages are encoded in submitSM
object. If not please tell how SMPP binary messages are encoded into a SMS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查
data_coding
参数。以下是一些值:
在这里您可以看到二进制文件的一些值。
如需完整列表,请查看 SMPP v3.4 规范。
有用的阅读
Check
data_coding
parameter.Here are some values:
Here you can see some values for binaries.
For the full list check the SMPP v3.4 specification.
Useful reading
要添加到上面的 Incognitos 答案中,如果您要发送二进制消息,另一个重要的参数是 esm_class。
两个最常见的值是:
如果设置了 UDHI,则需要在有效负载的开头解析二进制标头,该标头由以下部分组成用户数据头长度 (UDHL) 表示应将多少字节读取为头,后跟二进制头本身。
有关 esm_class 参数的所有可能值,请参阅 SMPP 规范第 5.2.12 节。
To add to Incognitos answer above, the other parameter that's important if you're sending binary messages is the esm_class.
The two most common values are:
If the UDHI is set you then need to parse a binary header at the start of the payload, made up of a User Data Header Length (UDHL) saying how many bytes should be read as headers, followed by the binary headers themselves.
See section 5.2.12 of the SMPP spec for all the possible values of the esm_class parameter.