diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-07-05 17:16:17 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-07-05 17:16:17 +0000 |
commit | 52ef5c7d30d9d33f820a317d33a58fc99e95676e (patch) | |
tree | 7775ce00d82dfa846081638a63b5b8eea3e11f58 /include | |
parent | 3c91556d2dab268021e18021d73ab70553adf5a1 (diff) |
add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/channel.h | 11 |
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 |