Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv32470/include/asterisk
Modified Files:
channel.h
Log Message:
add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE
Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- channel.h 21 Jun 2005 01:16:18 -0000 1.88
+++ channel.h 5 Jul 2005 17:16:17 -0000 1.89
@@ -47,6 +47,7 @@
#define MAX_LANGUAGE 20
+#define MAX_MUSICCLASS 20
#define AST_MAX_FDS 8
@@ -186,7 +187,7 @@
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 @@
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
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs