Updates:
Status: Reopened
Owner: baranowb
Cc: -baranowb amit.bhayani
Comment #3 on issue 1889 by baranowb: JitterBuffer throws
ArrayIndexOutOfBoundsException when the Sequence number roll overs
http://code.google.com/p/mobicents/issues/detail?id=1889
trying to sort this out. Actually patch is not correct see:
if (diff == 1) {
........
} else if (diff > 1) {
........
} else if (diff <= -65434) {
....
} else {.... }
diff will never be less than -65535, so two things:
- code will never go into last "else"
- why value in if is 65434 ??
Also encountered case when buffer clears itself. Possibly some changes need
to be done in checkPositiveOverflow method and how it cleans buffer.
Reopening.