summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-01-24 12:48:44 +0000
committerOlle Johansson <oej@edvina.net>2006-01-24 12:48:44 +0000
commit9434a05dc1dcf6aeac3a44ad33d1ef9130118ff1 (patch)
tree86f9ecaa7a08af92a0c83cc4459cf069af3c5760 /channel.c
parentaad2331375a4c05df59559c816818777c6d0bd50 (diff)
- 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
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 51c89374b..33ae05d4a 100644
--- a/channel.c
+++ b/channel.c
@@ -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;
+ }
+};
+