Skip to content
Snippets Groups Projects
  1. Jul 22, 2014
  2. May 22, 2014
    • Matthew Jordan's avatar
      res_corosync: Update module to work with Stasis (and compile) · 9cee08f5
      Matthew Jordan authored
      This patch fixes res_corosync such that it works with Asterisk 12. This
      restores the functionality that was present in previous versions of
      Asterisk, and ensures compatibility with those versions by restoring the
      binary message format needed to pass information from/to them.
      
      The following changes were made in the core to support this:
       * The event system has been partially restored. All event definition and
         event types in this patch were pulled from Asterisk 11. Previously, we had
         hoped that this information would live in res_corosync; however, the
         approach in this patch seems to be better for a few reasons:
         (1) Theoretically, ast_events can be used by any module as a binary
             representation of a Stasis message. Given the structure of an ast_event
             object, that information has to live in the core to be used universally.
             For example, defining the payload of a device state ast_event in
             res_corosync could result in an incompatible device state representation
             in another module.
         (2) Much of this representation already lived in the core, and was not
             easily extensible.
         (3) The code already existed. :-)
       * Stasis message types now have a message formatter that converts their
         payload to an ast_event object.
       * Stasis message forwarders now handle forwarding to themselves. Previously
         this would result in an infinite recursive call. Now, this simply creates a
         new forwarding object with no forwards set up (as it is the thing it is
         forwarding to). This is advantageous for res_corosync, as returning NULL
         would also imply an unrecoverable error. Returning a subscription in this
         case allows for easier handling of message types that are published directly
         to an aggregate topic that has forwarders.
      
      Review: https://reviewboard.asterisk.org/r/3486/
      
      ASTERISK-22912 #close
      ASTERISK-22372 #close
      ........
      
      Merged revisions 414330 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      9cee08f5
  3. May 09, 2014
  4. Aug 18, 2013
  5. Apr 16, 2013
  6. Jul 30, 2012
    • Russell Bryant's avatar
      Add a "corosync ping" CLI command. · fd111465
      Russell Bryant authored
      This patch adds a new CLI command to the res_corosync module.  It is primarily
      used as a debugging tool.  It lets you fire off an event which will cause
      res_corosync on other nodes in the cluster to place messages into the logger if
      everything is working ok.  It verifies that the corosync communication is
      working as expected.
      
      I didn't put anything in the CHANGES file for this, because this module is new
      in Asterisk 11.  There is already a generic "res_corosync new module" entry in
      there so I figure that covers it just fine.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fd111465
  7. Apr 28, 2012
  8. Apr 21, 2012
  9. Apr 17, 2012
  10. Feb 05, 2012
Loading