Skip to content
Snippets Groups Projects
  1. Jan 25, 2012
  2. Jan 24, 2012
  3. Jan 23, 2012
  4. Jan 21, 2012
  5. Jan 20, 2012
  6. Jan 19, 2012
  7. Jan 18, 2012
  8. Jan 17, 2012
  9. Jan 16, 2012
    • Terry Wilson's avatar
      Ensure ACK retransmit & hangup on non-200 response to INVITE · aacc1580
      Terry Wilson authored
      When handling a non-2xx final response on an INVITE transaction, we have to
      keep the transaction around after we send an ACK in case we receive a
      retransmission of the response so we can re-transmit the ACK, but also tear
      down the ast_channel as soon as we transmit the ACK. Before this patch, we
      could fail at both of these things. Calling sip_alreadygone/needdestroy
      prevented us from keeping the transaction up and retransmitting the ACK, and
      queueing CONGESTION was not sufficient to cause the channel to be torn down
      when originating calls via the CLI, for example.
      
      This patch queues a hangup with CONGESTION instead of just queueing CONGESTION
      for these responses and removes the sip_alreadygone and sip_needdestroy calls
      from handle_response_invite on non-2xx responses. It relies on the hangup
      calling sip_scheddestroy.
      
      For more information, see section 17.1.1.1 of RFC 3261.
      
      (closes issue ASTERISK-17717)
      Review: https://reviewboard.asterisk.org/r/1672/
      ........
      
      Merged revisions 351130 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 351131 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      aacc1580
    • Terry Wilson's avatar
      Don't prematurely stop SIP session timer · fb5924eb
      Terry Wilson authored
      When Asterisk is the UAS (incoming call, endpoint is re-inviting) the SIP session timer expires after half the time the sip endpoint indicates in the Session-expires header in proc_session_timer(). The session timer was being stopped totally and being handled as an error case instead of running again until the second expiry. This patch treats the half-time expiry as a non-error case and continues the timer until the true expiry.
      
      (closes issue ASTERISK-18996)
      Reported by: Thomas Arimont
      Tested by: Thomas Arimont
      Patches: session_timer_fix.diff by Terry Wilson (License #5357)
        based on session_timer.patch by Thomas Arimont (License #5525)
      ........
      
      Merged revisions 351080 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 351081 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fb5924eb
Loading