Added log entry for sending DLRs
This commit is contained in:
+3
-1
@@ -721,7 +721,7 @@ function smsDlr(status, callback) {
|
|||||||
|
|
||||||
if (sms.smsId === undefined) {
|
if (sms.smsId === undefined) {
|
||||||
err = new Error('Trying to send DLR with no smsId.');
|
err = new Error('Trying to send DLR with no smsId.');
|
||||||
log.warn('larvitsmpp: lib/session.js: smsDlr() - ' + err.message);
|
log.warn('larvitsmpp: lib/utils.js: smsDlr() - ' + err.message);
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -743,6 +743,8 @@ function smsDlr(status, callback) {
|
|||||||
shortMessage += ' stat:UNDELIVERABLE err:1 text:xxx';
|
shortMessage += ' stat:UNDELIVERABLE err:1 text:xxx';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.verbose('larvitsmpp: lib/utils.js: smsDlr() - Sending DLR message: "' + shortMessage + '"');
|
||||||
|
|
||||||
dlrPduObj = {
|
dlrPduObj = {
|
||||||
'cmdName': 'deliver_sm',
|
'cmdName': 'deliver_sm',
|
||||||
'params': {
|
'params': {
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
"url": "https://github.com/larvit/larvitsmpp",
|
"url": "https://github.com/larvit/larvitsmpp",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
},
|
},
|
||||||
"version": "0.1.5",
|
"version": "0.1.6",
|
||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"readme": "larvitsmpp",
|
"readme": "larvitsmpp",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|||||||
Reference in New Issue
Block a user