]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 204247 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2009 21:53:23 +0000 (21:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2009 21:53:23 +0000 (21:53 +0000)
commite5706ee84773803e8a668490aead9c24848a835e
tree81e14ec21821bc6864744fc197e7b76f163a9f56
parent61bb0275dfba8c9a8c2f2efb56b3cbb7faea6fcf
Merged revisions 204247 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r204247 | mmichelson | 2009-06-29 16:48:54 -0500 (Mon, 29 Jun 2009) | 32 lines

  Merged revisions 204243,204246 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r204243 | mmichelson | 2009-06-29 16:23:43 -0500 (Mon, 29 Jun 2009) | 22 lines

    Fix a problem where chan_sip would ignore "old" but valid responses.

    chan_sip has had a problem for quite a long time that would manifest when
    Asterisk would send multiple SIP responses on the same dialog before receiving
    a response. The problem occurred because chan_sip only kept track of the highest
    outgoing sequence number used on the dialog. If Asterisk sent two requests out,
    and a response arrived for the first request sent, then Asterisk would ignore
    the response. The result was that Asterisk would continue retransmitting the
    requests and ignoring the responses until the maximum number of retransmissions
    had been reached.

    The fix here is to rearrange the code a bit so that instead of simply comparing
    the sequence number of the response to our latest outgoing sequence number, we
    walk our list of outstanding packets and determine if there is a match. If there is,
    we continue. If not, then we ignore the response.

    In doing this, I found a few completely useless variables that I have now removed.

    (closes issue #11231)
    Reported by: flefoll

    Review: https://reviewboard.asterisk.org/r/298
  ........
    r204246 | mmichelson | 2009-06-29 16:37:05 -0500 (Mon, 29 Jun 2009) | 3 lines

    Fix build oops.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@204249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c