Fixed issue with TLV starting with a NULL byte that follows directly upon a short_message
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user