Skip to content
Snippets Groups Projects
  1. Sep 09, 2014
  2. Sep 08, 2014
  3. Sep 06, 2014
  4. Sep 05, 2014
  5. Sep 04, 2014
  6. Sep 03, 2014
  7. Sep 02, 2014
    • Mark Michelson's avatar
      Resolve race condition where channels enter dialplan application before media has been negotiated. · 1b64f353
      Mark Michelson authored
      Testsuite tests will occasionally fail because on reception of a 200 OK SIP response,
      an AST_CONTROL_ANSWER frame is queued prior to when media has finished being
      negotiated. This is because session supplements are called into before PJSIP's
      inv_session code has told us that media has been updated. Sometimes the queued answer
      frame is handled by the PBX thread before the ensuing media negotiations occur, causing
      a test failure.
      
      As it turns out, there is another place that session supplements could be called into, which is
      after media has finished getting negotiated. What this commit introduces is a means for session
      supplements to indicate when they wish to be called into when handling an incoming SIP response.
      By default, all session supplements will be run at the same point that they were prior to this
      commit. However, session supplements may indicate that they wish to be handled earlier than
      normal on redirects, or they may indicate they wish to be handled after media has been negotiated.
      
      In this changeset, two session supplements have been updated to indicate a preference for when
      they should be run: res_pjsip_diversion executes before handling redirection in order to get
      information from the Diversion header, and chan_pjsip now handles responses to INVITEs after
      media negotiation to fix the race condition mentioned previously.
      
      ASTERISK-24212 #close
      Reported by Matt Jordan
      
      Review: https://reviewboard.asterisk.org/r/3930
      ........
      
      Merged revisions 422536 from http://svn.asterisk.org/svn/asterisk/branches/12
      ........
      
      Merged revisions 422542 from http://svn.asterisk.org/svn/asterisk/branches/13
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      1b64f353
  8. Sep 01, 2014
  9. Aug 30, 2014
  10. Aug 29, 2014
  11. Aug 28, 2014
  12. Aug 27, 2014
  13. Aug 26, 2014
  14. Aug 25, 2014
  15. Aug 24, 2014
Loading