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: '90000541x0', 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 company or call 08688805062/3.Please ignore the word freshersworld in sms/mail.regards Froxtel team.","utf8"), source_addr:'FROXTL', registered_delivery:1, data_coding:0, }, function(pdu) { if (pdu.command_status == 0) { // Message successfully sent console.log(JSON.stringify(pdu)); } }); } }); 

当我使用nodejs短模块它工作正常,我能够得到交货收据。 但是我无法发送长信息。

我应该使用data_sm长消息或其他?

您的代码看起来很好,可以发送和处理对传出请求的响应。

交货收据使用deliver_sm pakets从smpp服务器发送到您的客户端,因此您需要注册一个事件处理程序:

 session.on('deliver_sm', function(pdu) { console.log(pdu.short_message); session.send(pdu.response()); });