Fix for PDU's arriving in random order. Issue: https://github.com/larvit/larvitsmpp/issues/9
This commit is contained in:
+1
-1
@@ -378,7 +378,7 @@ function longSms(pduObj) {
|
|||||||
// 4th octet and length is
|
// 4th octet and length is
|
||||||
// header size -2 octets
|
// header size -2 octets
|
||||||
partsCount = pduObj.params.short_message[2 + csmsReference.length + 1],
|
partsCount = pduObj.params.short_message[2 + csmsReference.length + 1],
|
||||||
partNr = pduObj.params.short_message[2 + csmsReference.length + 1],
|
partNr = pduObj.params.short_message[2 + csmsReference.length + 2],
|
||||||
longSmsId = pduObj.params.source_addr + '_' + pduObj.params.destination_addr + '_' + csmsReference;
|
longSmsId = pduObj.params.source_addr + '_' + pduObj.params.destination_addr + '_' + csmsReference;
|
||||||
|
|
||||||
if (this.longSmses[longSmsId] === undefined) {
|
if (this.longSmses[longSmsId] === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user