Hi.
How to create a SMPP TLV ?
//user_message_reference
smpp.tlv=0x001E;
smpp.addTLV(0x001E,2,2);
session.deliver_sm({
// sequence_number:pdu.sequence_number++,
// service_type: "sms",
//source_addr_ton: 1,
//source_addr_npi: 1,
// source_addr:originator ,
dest_addr_ton:1,
dest_addr_npi:1,
destination_addr: gsmNo,
esm_class: 4, //deliveryi rapor sinifi
protocol_id: 0,
priority_flag: 1,
// schedule_delivery_time: '2012-03-31 14:56:21',
// validity_period: '2012-04-01 14:56:20',
registered_delivery: 1,
// replace_if_present_flag: 0,
data_coding: 241,
// sm_default_msg_id: 999,//smsId, //123
//sm_length: {type: types.int8},
short_message: delivery_rapor
},function(pdu) {
console.log("ansver");
var delivery_smsId=pdu.message_id;
console.log("return :"+delivery_smsId);
});
return defs.tlvs[tlv] = options;
^
ReferenceError: tlv is not defined
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en