Now working with multi messages
This commit is contained in:
+10
-2
@@ -488,8 +488,16 @@ function pduReturn(pdu, status, params, tlvs, callback) {
|
||||
params = {};
|
||||
}
|
||||
|
||||
if (pdu === undefined || pdu.cmdName === undefined || pdu.seqNr === undefined) {
|
||||
err = new Error('larvitsmpp: lib/utils.js: pduReturn() - Invalid call PDU, cannot create response PDU');
|
||||
if (pdu === undefined) {
|
||||
err = new Error('larvitsmpp: lib/utils.js: pduReturn() - PDU is undefined, cannot create response PDU');
|
||||
}
|
||||
|
||||
if (pdu.cmdName === undefined) {
|
||||
err = new Error('larvitsmpp: lib/utils.js: pduReturn() - pdu.cmdName is undefined, cannot create response PDU');
|
||||
}
|
||||
|
||||
if (pdu.seqNr === undefined) {
|
||||
err = new Error('larvitsmpp: lib/utils.js: pduReturn() - pdu.seqNr is undefined, cannot create response PDU');
|
||||
}
|
||||
|
||||
if (err === null && defs.errors[status] === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user