Fix for PDU's arriving in random order. Issue: https://github.com/larvit/larvitsmpp/issues/9

This commit is contained in:
Qasim Ayyaz Khan
2016-06-03 10:00:30 -04:00
parent 0936afbbbe
commit 11512500de
+1 -1
View File
@@ -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) {