有人可以向我解释一下什么是 DLR 以及它如何在短信网关中使用吗?
有人可以向我解释一下什么是 DLR 以及它如何在短信网关中使用吗?
Can someone please explaind me what is DLR and how it used in sms gateways?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您通过网关发送消息时,您有机会指定是否希望收到除 SMSC 接收消息之外的事件通知。
当您指定要接收 DLR 时,网关将向您发送 DLR,让您知道尝试将消息传递到网络的结果。如果发生故障,DLR 将包含有关故障原因的代码。
网关可以发送更多DLR(中间通知)来通知消息传递到网络后发生的其他事件,例如传递到手机。
您可以通过查看 SMPP 规范来了解更多信息,下面是网络传送收据流程的基本图表(取自规范 v3.4)。
When you send messages through a gateway you have the opportunity to specify wether or not you want to be notified of events other than the SMSC receiving your message.
When you do specify that you want to receive DLRs the gateway will send you a DLR to let you know that the result of attempting to deliver the message to the network. In case of failure the DLR will contain a code about the reason of failure.
Gateways may send more DLRs (Intermediate Notifications) to notify of other events that happen after the message has been delivered to the network, e.g., delivery to a handset.
You can find more by looking at the SMPP spec, below is a basic diagram of the flow for a Network Delivery Receipt (taken from the spec v3.4).
它是交付报告的 URL 回调。网关不会记录活动,而是使用末尾的查询字符串和传送报告的参数来回调所提供的 URL。
因此,为了使 URL 回调正常工作,您需要一个 HTTP Web 服务器,其 URL 可以侦听传入的 GET 请求:
http://www.example.com/dlr.php
然后将请求发送给它,如下所示
“http://example.com/dlr.php? page=dlr&status=[status]&answer=[answer]&to=[to]&ts=[ts]&id=[id]"
可以找到完整的文档列表此处。
It is a URL callback for Delivery Reports. Instead of the gateway logging the activity it will callback the provided URL using a querystring at the end with the parameters of the delivery report.
So in order for the URL callback to work you'll need a HTTP webserver with a URL that listens for incoming GET requests:
http://www.example.com/dlr.php
then requests are sent to it like so
"http://example.com/dlr.php?page=dlr&status=[status]&answer=[answer]&to=[to]&ts=[ts]&id=[id]"
The full listing of documentation can be found here.