aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-05 17:16:17 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-05 17:16:17 +0000
commit0b7a2ea0e78233b0a84ee200882963c3e46d234b (patch)
tree7775ce00d82dfa846081638a63b5b8eea3e11f58 /include/asterisk/channel.h
parent0062027482da7327018d70e3fb2ed0ceed0853d8 (diff)
add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 0ed9d00cc..817d3cc97 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -47,6 +47,7 @@ extern "C" {
#define MAX_LANGUAGE 20
+#define MAX_MUSICCLASS 20
#define AST_MAX_FDS 8
@@ -186,7 +187,7 @@ struct ast_channel {
int fds[AST_MAX_FDS];
/*! Default music class */
- char musicclass[MAX_LANGUAGE];
+ char musicclass[MAX_MUSICCLASS];
/*! Music State*/
void *music_state;
/*! Current generator data if there is any */
@@ -829,6 +830,14 @@ int ast_channel_bridge(struct ast_channel *c0,struct ast_channel *c1,struct ast_
channel is hung up. */
int ast_channel_masquerade(struct ast_channel *original, struct ast_channel *clone);
+/*! Gives the string form of a given cause code */
+/*!
+ * \param cause cause to get the description of
+ * Give a name to a cause code
+ * Returns the text form of the binary cause code given
+ */
+const char *ast_cause2str(int state);
+
/*! Gives the string form of a given channel state */
/*!
* \param state state to get the name of