I'm using node-smpp and would like to know how to send a "deliver_sm" request and add "TLV" response to user_message_reference.
Extract of node-smpp / lib / smpp.js:
exports.addTLV = function(tag, options) {
options.tag = tag;
defs.tlvs[tlv] = options;
defs.tlvsById[options.id] = options;
};
Test code:
var tlv = new Object();
tlv.tag = 0x001E; // smpp.receipted_message_id;
tlv.lenght = msgid.lenght;
tlv.value = msgid;
smpp.addTLV(tlv,tlv);
Result:
defs.tlvs[tlv] = options;
^
ReferenceError: tlv is not defined