Skip to content

Commit

Permalink
Reset sequence session counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
daper authored and farhadi committed Feb 4, 2015
1 parent 3f9a5bb commit 268b055
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/smpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Session.prototype.send = function(pdu, callback) {
// traffic, the sequence_number will be provided by
// client otherwise we generate it automatically
if (!pdu.sequence_number) {
if (this.sequence == 0x7FFFFFFF) {
this.sequence = 0;
}
pdu.sequence_number = ++this.sequence;
}

Expand Down

0 comments on commit 268b055

Please sign in to comment.