Tag: smpp

SMPP交付收据响应不在节点smpp中

我正在使用节点SMPP,我能够发送短信到我的号码,但我不能得到它交付或没有交付收据。 请参阅我的下面的代码 如果出现任何问题,请指导 var smpp = require('smpp'); var session = smpp.connect('103.250.30.x', 51612); session.bind_transceiver({ system_id: 'makesms1', password: 'Prasad@1' }, function(pdu) { if (pdu.command_status == 0) { // Successfully bound console.log('bound bind_transceiver') session.submit_sm({ destination_addr: '90000541×0', short_message: new Buffer("Hi, Froxtel interview SMS/email has been sent by company only. Its not any related to freshersworld. U can contact directly […]

理解smpp node.js上的auth

好的,我在这里挣扎了一下。 这是我想要实现的:创build并运行一个smpp服务器,用于侦听来自我们的短信服务平台的smpp发送请求。 只有我们的平台应该能够连接到这个服务器。 在接收绑定时,授权它是我们的服务,并接收发送请求 只接受来自授权用户/密码的发送请求。 在收到发送请求后,将其发送给我们的消息传递提供者,其中registered_delivery = 1 等待deliver_sm响应让我们知道它已经到达 用消息传递状态更新我们的本地数据库。 我的问题 – 我的服务似乎让任何做未经授权的submit_sm。 这里有一些粗糙的,难看的testing代码,我已经放在一起了。 我是否构造错误? 请记住,我对smpp和node.js都很陌生,所以我可能会疯狂地偏离轨道。 var smpp = require('smpp'); // create listener for incoming connections from our server var server = smpp.createServer(function(session) { // create outbound connection to provider to pass messages on var outsession = smpp.connect('smpp.provider.net', 8101); outsession.bind_transceiver({ system_id: 'myaccount', password: 'abcdef' }, […]