diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 12:48:44 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-24 12:48:44 +0000 |
commit | 1e6538d0ccb90bd3fae7fa8a9f7ef82be4826b42 (patch) | |
tree | 86f9ecaa7a08af92a0c83cc4459cf069af3c5760 /channel.c | |
parent | 15e8ae94a9057c796fd8c82a84ec0c32cd4d815b (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 'channel.c')
-rw-r--r-- | channel.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -4125,3 +4125,19 @@ void ast_channel_stop_silence_generator(struct ast_channel *chan, struct ast_sil free(state); } + + +/*! \ brief Convert channel reloadreason (ENUM) to text string for manager event */ +const char *channelreloadreason2txt(enum channelreloadreason reason) { + switch (reason) { + case CHANNEL_MODULE_LOAD: return "LOAD (Channel module load)"; + break; + case CHANNEL_MODULE_RELOAD: return "RELOAD (Channel module reload)"; + break; + case CHANNEL_CLI_RELOAD: return "CLIRELOAD (Channel module reload by CLI command)"; + break; + default: return "MANAGERRELOAD (Channel module reload by manager)"; + break; + } +}; + |