Adding random uuid to message id if not assigned. It makes sure that the DLR's are mapped properly for smpp clients.
This commit is contained in:
+2
-1
@@ -6,6 +6,7 @@ const topLogPrefix = 'larvitsmpp: lib/session.js: ',
|
||||
utils = require('./utils'),
|
||||
async = require('async'),
|
||||
defs = require('./defs'),
|
||||
uuid = require('uuid/v1'),
|
||||
log = require('winston');
|
||||
|
||||
/**
|
||||
@@ -32,7 +33,7 @@ function smsResp(status, cb) {
|
||||
}
|
||||
|
||||
if (sms.smsId === undefined) {
|
||||
sms.smsId = '';
|
||||
sms.smsId = uuid();
|
||||
}
|
||||
|
||||
// Accept a generic positive status
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"iconv-lite": "^0.4.18",
|
||||
"moment": "^2.18.1",
|
||||
"utils-merge": "^1.0.0",
|
||||
"uuid": "^3.2.1",
|
||||
"winston": "^2.3.1"
|
||||
},
|
||||
"description": "Simplified SMPP implementation",
|
||||
|
||||
Reference in New Issue
Block a user