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
|
||||
|
||||
Reference in New Issue
Block a user