mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Merged revisions 75757 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75757 | russell | 2007-07-18 16:09:13 -0500 (Wed, 18 Jul 2007) | 5 lines When traversing the queue of frames for possible retransmission after receiving a VNAK, handle sequence number wraparound so that all frames that should be retransmitted actually do get retransmitted. (issue #10227, reported and patched by mihai) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5936,7 +5936,7 @@ static void vnak_retransmit(int callno, int last)
|
|||||||
AST_LIST_TRAVERSE(&iaxq.queue, f, list) {
|
AST_LIST_TRAVERSE(&iaxq.queue, f, list) {
|
||||||
/* Send a copy immediately */
|
/* Send a copy immediately */
|
||||||
if ((f->callno == callno) && iaxs[f->callno] &&
|
if ((f->callno == callno) && iaxs[f->callno] &&
|
||||||
(f->oseqno >= last)) {
|
((unsigned char ) (f->oseqno - last) < 128)) {
|
||||||
send_packet(f);
|
send_packet(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user