- Report SIP reload in manager (issue 5742 with small changes)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-01-24 12:48:44 +00:00
parent aad2331375
commit 9434a05dc1
3 changed files with 57 additions and 12 deletions

View File

@@ -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)
}