SMPP 交付报告
如何检查已发送消息的送达报告。我使用的是 PHP,并且有 SMPP 帐户。有人可以帮我检查交货报告吗?
我会收到像我们在手机中收到的那样的递送报告消息吗?
或者发送功能的状态可以吗?
How to check for the delivery report of the sent message. I am using PHP and I have the SMPP account. Can somebody help me with the checking of delivery report?
Will I get a delivery report as message like we get in our mobile?
Or the status of the send function will do for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 SMPP,您可以通过以下方式检索传送报告。
第一个选择是在发送
submit_sm
PDU 时将 registered_delivery 参数设置为1
。在这种情况下,SMSC 应向您发送带有
的
包含交付报告。deliver_sm
PDU esm_class = 0x04另一种方法是使用
query_sm
命令请求传送状态,但如果轮询 SMSC 过于频繁,这可能会产生更多流量。Using SMPP you can retrieve delivery report in the following ways.
First choice is to set registered_delivery parameter to
1
when you sendsubmit_sm
PDU.In this case SMSC should send you
deliver_sm
PDU withesm_class = 0x04
containing delivery report.Other way is to request delivery status with
query_sm
command but this may generate more traffic if polling SMSC too often.如果您询问将 Delivery_Receipt 传送回源的格式,那么它将作为 SMPP
deliver_sm
或data_sm 中的用户数据负载进行携带操作。
当用于传输送达收据时,以下字段与
deliver_sm
和data_sm
操作相关:If you're asking about the format in which the Delivery_Receipt will be delivered back to the source then it's carried as the user data payload in the SMPP
deliver_sm
ordata_sm
operation.The following fields are relevant in the
deliver_sm
anddata_sm
operations when used for transmitting delivery receipts:SMS送达收据是 SMSC 生成的常规 SMS 文本消息,但使用
esm_class = 0x04
来区分它们。esm_class = 0x04
表示 PDU 方向为 SMSC → ESME 且短信包含 SMSC 送达回执短信。deliver_sm
SMPP PDU 的短消息区域由以下文本格式组成,使用dcs=0x00
编码 数据编码方案(即根据 SMPP 规范):示例送达收据消息文本:
在此处添加以下链接以获取处理上述示例消息的详细信息:
SMS delivery receipts are regular SMS text messages generated by SMSC, but
esm_class = 0x04
is used to differentiate them. Theesm_class = 0x04
means PDU direction is SMSC → ESME and short message contains SMSC delivery receipt short message.Short message area of
deliver_sm
SMPP PDU consists below text format which is encoded usingdcs=0x00
data coding scheme (i.e. SMSC Default Alphabet according to the SMPP specification):Sample delivery receipt message text:
Adding the following link here for details of processing the sample message above: