Skip to content
Snippets Groups Projects
  1. Feb 25, 2013
  2. Feb 24, 2013
  3. Feb 22, 2013
    • Michael L. Young's avatar
      Fix FastAGI To Properly Check For A Connection · e9bcf982
      Michael L. Young authored
      When IPv6 support was added to FastAGI, the intent was to have the ability to
      check all addresses resolved for a host since we might receive an IPv4 address
      and an IPv6 address.  The problem with the current code, is that, since we are
      doing O_NONBLOCK, we get EINPROGRESS when calling ast_connect() but are ignoring
      this instead of handling it.  We break out of the loop and continue on.  When we
      later call ast_poll(), it succeeds but we never check if we have a connection or
      not on the socket level.  We then attempt to send data to the host address that
      we think is setup and it fails.  We then check the errno and see that we have
      "connection refused" and then return with agi failed.
      
      This patch does the following:
      
      * Handles EINPROGRESS by creating the function handle_connection()
        - ast_poll() was moved into this function
        - This function checks the results of the connection on the socket level after
          calling ast_poll()
      * Continues to the next address if the above fails to create a connection
      * Once all addresses resolved are tried and we still are unable to establish a
        connection, then we return that the FastAGI call failed
      
      (closes issue ASTERISK-21065)
      Reported by: Jeremy Kister
      Tested by: Jeremy Kister, Michael L. Young
      Patches:
        asterisk-21065_poll_correctly_v4.diff Michael L. Young (license 5026)
      
      Review: https://reviewboard.asterisk.org/r/2330/
      ........
      
      Merged revisions 381893 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e9bcf982
    • Jonathan Rose's avatar
      app_dial: Honor the 'c' flag when the calling party hangs up · abfb23df
      Jonathan Rose authored
      Apparently this feature became broken in 11, probably as a result
      of the Hangup Cause project.
      
      (closes issue ASTERISK-21113)
      Reprted by: Heiko Wundram
      Patches:
      	app_dial.patch uploaded by Heiko Wundram (license 5822)
      ........
      
      Merged revisions 381880 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      abfb23df
    • Matthew Jordan's avatar
      Properly detect launchd · a3b13842
      Matthew Jordan authored
      Asterisk was a little too pro-active in claiming that it found launchd. On
      systems without launchd - such as FreeBSD - this resulted in certain items
      in Asterisk that conflict with launchd to not be selectable, such as
      res_timing_kqueue.
      
      (closes issue ASTERISK-20749)
      Reported by: Oleg Baranov
      ........
      
      Merged revisions 381847 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 381848 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a3b13842
  4. Feb 19, 2013
  5. Feb 18, 2013
  6. Feb 16, 2013
  7. Feb 15, 2013
  8. Feb 14, 2013
  9. Feb 12, 2013
Loading