SMPP 交付报告

发布于 2024-12-24 23:02:33 字数 118 浏览 1 评论 0原文

如何检查已发送消息的送达报告。我使用的是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沧桑㈠ 2024-12-31 23:02:33

使用 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 send submit_sm PDU.
In this case SMSC should send you deliver_sm PDU with esm_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.

≈。彩虹 2024-12-31 23:02:33

如果您询问将 Delivery_Receipt 传送回源的格式,那么它将作为 SMPP deliver_smdata_sm 中的用户数据负载进行携带操作。

当用于传输送达收据时,以下字段与 deliver_smdata_sm 操作相关:

• source address (i.e. source_addr_ton, source_addr_npi, source_addr)
• destination address (i.e. dest_addr_ton, dest_addr_npi, destination_addr)
• esm_class
• message_state
• network_error_code
• receipted_message_id

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 or data_sm operation.

The following fields are relevant in the deliver_sm and data_sm operations when used for transmitting delivery receipts:

• source address (i.e. source_addr_ton, source_addr_npi, source_addr)
• destination address (i.e. dest_addr_ton, dest_addr_npi, destination_addr)
• esm_class
• message_state
• network_error_code
• receipted_message_id
固执像三岁 2024-12-31 23:02:33

SMS送达收据是 SMSC 生成的常规 SMS 文本消息,但使用 esm_class = 0x04 来区分它们。 esm_class = 0x04 表示 PDU 方向为 SMSCESME 且短信包含 SMSC 送达回执短信。

deliver_sm SMPP PDU 的短消息区域由以下文本格式组成,使用 dcs=0x00 编码 数据编码方案(即根据 SMPP 规范):

id:{message_id} 
sub:{message_sub}  
dlvrd:{message_dlvrd}
submit date:{message_submit_date} done  
date:{message_done_date} 
stat:{message_stat} 
err:{message_err}   

示例送达收据消息文本:

id:40072910491427628 sub:001 dlvrd:001 submit date:1007291049 done date:1007291049 stat:DELIVRD err:000

在此处添加以下链接以获取处理上述示例消息的详细信息:

SMS delivery receipts are regular SMS text messages generated by SMSC, but esm_class = 0x04 is used to differentiate them. The esm_class = 0x04 means PDU direction is SMSCESME and short message contains SMSC delivery receipt short message.

Short message area of deliver_sm SMPP PDU consists below text format which is encoded using dcs=0x00 data coding scheme (i.e. SMSC Default Alphabet according to the SMPP specification):

id:{message_id} 
sub:{message_sub}  
dlvrd:{message_dlvrd}
submit date:{message_submit_date} done  
date:{message_done_date} 
stat:{message_stat} 
err:{message_err}   

Sample delivery receipt message text:

id:40072910491427628 sub:001 dlvrd:001 submit date:1007291049 done date:1007291049 stat:DELIVRD err:000

Adding the following link here for details of processing the sample message above:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文