简体   繁体   English

是否可以使用node-smpp(https://github.com/farhadi/node-smpp)发送批量短信?

[英]Is it possible to send bulk sms with node-smpp (https://github.com/farhadi/node-smpp)?

This is the code in the documentation 这是文档中的代码

This is a complete implementation of SMPP v5.0 in node.js, with support for custom commands and TLVs. 这是node.js中SMPP v5.0的完整实现,并支持自定义命令和TLV。

SMPP v5.0, by design, is backward compatible with v3.4, so you would be able to use this module with 3.4 implementations. 从设计上讲,SMPP v5.0与v3.4向后兼容,因此您可以在3.4实现中使用此模块。 Even you can use this module with 3.3 implementations as far as you don't use TLV parameters and don't bind in transceiver mode. 即使您不使用TLV参数并且不以收发器模式绑定,也可以将此模块与3.3实现一起使用。

The name of the methods and parameters in this implementation are equivalent to the names defined in SMPP specification. 此实现中的方法和参数的名称与SMPP规范中定义的名称等效。 So get a copy of SMPP v5.0 Specification for a list of available operations and their parameters. 因此,请获取一份SMPP v5.0规范副本,以获取可用操作及其参数的列表。

 var smpp = require('smpp'); var session = smpp.connect('smpp://example.com:2775'); session.bind_transceiver({ system_id: 'YOUR_SYSTEM_ID', password: 'YOUR_PASSWORD' }, function(pdu) { if (pdu.command_status == 0) { // Successfully bound session.submit_sm({ destination_addr: 'DESTINATION NUMBER', short_message: 'Hello!' }, function(pdu) { if (pdu.command_status == 0) { // Message successfully sent console.log(pdu.message_id); } }); } }); 

Generally sending advertisement SMS in bulk mode is done by using SMPP and as long as your ESME application is stable and scalable it is not important which SMPP API you use. 通常,以批量模式发送广告SMS是通过使用SMPP完成的,并且只要您的ESME应用程序稳定且可扩展,使用哪个SMPP API都不重要。 You should have at least RX mode SMPP client connection to SMS Hub or MNO SMSC with TPS limit in order to finish desired time frame. 您必须至少具有RX模式SMPP客户端连接到具有TPS限制的SMS集线器或MNO SMSC,才能完成所需的时间范围。 Your application should support parallel submission of SMPP packets with rate limiter which prevents receiving error response due to exceeding allowed TPS limit. 您的应用程序应支持使用速率限制器并行提交SMPP数据包,以防止由于超出允许的TPS限制而收到错误响应。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用节点 smpp 发送长消息? - how to send long message using node smpp? 节点smpp中未出现SMPP传递回执响应 - SMPP delivery receipt response not coming in Node smpp 了解smpp node.js上的身份验证 - understanding auth on smpp node.js node.js SMPP EALREADY错误 - node.js SMPP EALREADY error node.js中的核心模块如何工作? (https://github.com/nodejs/node/blob/master/lib) - How do the core modules in node.js work? (https://github.com/nodejs/node/blob/master/lib) I have installed a node based API from https://github.com/opentok/interactive-broadcast-api, but how to enable HTTPS on this API? - I have installed a node based API from https://github.com/opentok/interactive-broadcast-api, but how to enable HTTPS on this API? 如何从node.js SMPP发送deliver_sm请求添加user_message_reference TLV - How to send deliver_sm request add user_message_reference TLV from node.js SMPP 在bind_transceiver期间使用smpp-node时出错 - Error when using smpp-node during bind_transceiver Azure Pipelines:无法下载“https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-83_binding.node” - Azure Pipelines: Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-83_binding.node" 我可以将在node.js中[https://github.com/jasonjoh/node-tutorial]在此处实现的Office 365 Rest Api用作Web服务吗? - Can i use office 365 Rest Api implemented here [https://github.com/jasonjoh/node-tutorial] in node.js as a Web service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM