From fd1114659298072d639b691095825b66252a2f3d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 30 Jul 2012 00:14:18 +0000 Subject: Add a "corosync ping" CLI command. 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 --- include/asterisk/event_defs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/asterisk/event_defs.h') diff --git a/include/asterisk/event_defs.h b/include/asterisk/event_defs.h index d1e88360c..d3514f59c 100644 --- a/include/asterisk/event_defs.h +++ b/include/asterisk/event_defs.h @@ -58,8 +58,10 @@ enum ast_event_type { AST_EVENT_PRESENCE_STATE = 0x0a, /*! Used to alert listeners when a named ACL has changed. */ AST_EVENT_ACL_CHANGE = 0x0b, + /*! Send out a ping for debugging distributed events */ + AST_EVENT_PING = 0x0c, /*! Number of event types. This should be the last event type + 1 */ - AST_EVENT_TOTAL = 0x0c, + AST_EVENT_TOTAL = 0x0d, }; /*! \brief Event Information Element types */ -- cgit v1.2.3