3766 Voice: Asterisk SIP Stats Inaccuracies
The code to check if seqno cycle needs to be incresed not placed correctly. The variable unsigned short seqno will set to zero once reached max value 65535.Once it reached zero we need to compare the lastrxseqno with currentseq no and find out it cycled once. In the old code we were overriding the rtp->lastrxseqno without checking if seqno is maxed and will reset to zero and increase the rtp cycle.