aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 12:48:44 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 12:48:44 +0000
commit1e6538d0ccb90bd3fae7fa8a9f7ef82be4826b42 (patch)
tree86f9ecaa7a08af92a0c83cc4459cf069af3c5760 /include
parent15e8ae94a9057c796fd8c82a84ec0c32cd4d815b (diff)
- Report SIP reload in manager (issue 5742 with small changes)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8531 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 449b38e0f..f43b0ef9f 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -530,6 +530,14 @@ struct outgoing_helper {
#define AST_STATE_MUTE (1 << 16)
/*! @} */
+/*! \brief Channel reload reasons for manager events at load or reload of configuration */
+enum channelreloadreason {
+ CHANNEL_MODULE_LOAD,
+ CHANNEL_MODULE_RELOAD,
+ CHANNEL_CLI_RELOAD,
+ CHANNEL_MANAGER_RELOAD,
+};
+
/*! \brief Change the state of a channel */
int ast_setstate(struct ast_channel *chan, int state);
@@ -1191,9 +1199,14 @@ static inline int ast_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds,
} }
extern ast_group_t ast_get_group(char *s);
-/* print call- and pickup groups into buffer */
+
+/*! \brief print call- and pickup groups into buffer */
extern char *ast_print_group(char *buf, int buflen, ast_group_t group);
+/*! \brief Convert enum channelreloadreason to text string for manager event
+ \param reason Enum channelreloadreason - reason for reload (manager, cli, start etc)
+*/
+const char *channelreloadreason2txt(enum channelreloadreason reason);
#if defined(__cplusplus) || defined(c_plusplus)
}