Fixed issue with TLV starting with a NULL byte that follows directly upon a short_message

This commit is contained in:
2015-05-03 18:33:02 +02:00
parent 6fa1bd319f
commit e361ff775f
4 changed files with 70 additions and 9 deletions
+3 -3
View File
@@ -207,7 +207,7 @@ function session(sock) {
* from - alphanum or international format
* to - international format
* message - string
* dlrRequested - boolean defaults to false
* dlr - boolean defaults to false
* @param func callback(err, smsId, retPduObj)
*/
returnObj.sendSms = function(smsOptions, callback) {
@@ -221,7 +221,7 @@ function session(sock) {
};
// Request DLRs!
if (smsOptions.dlrRequested) {
if (smsOptions.dlr) {
pduObj.params.registered_delivery = 0x01;
}
@@ -374,7 +374,7 @@ function session(sock) {
'to': pduObj.params.destination_addr,
'submitTime': new Date(),
'message': pduObj.params.short_message,
'dlrRequested': Boolean(pduObj.params.registered_delivery)
'dlr': Boolean(pduObj.params.registered_delivery)
};
function smsReceived(smsData) {