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
This commit is contained in:
Russell Bryant
2005-07-05 17:16:17 +00:00
parent 3c91556d2d
commit 52ef5c7d30
7 changed files with 84 additions and 12 deletions

View File

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