[Asterisk-cvs] asterisk/include/asterisk channel.h,1.88,1.89
russell at lists.digium.com
russell at lists.digium.com
Tue Jul 5 13:17:01 CDT 2005
- Previous message: [Asterisk-cvs] asterisk channel.c,1.208,1.209
- Next message: [Asterisk-cvs] asterisk/channels chan_mgcp.c, 1.127,
1.128 chan_sip.c, 1.772, 1.773 chan_skinny.c, 1.84,
1.85 chan_zap.c, 1.467, 1.468
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Asterisk-cvs] asterisk channel.c,1.208,1.209
- Next message: [Asterisk-cvs] asterisk/channels chan_mgcp.c, 1.127,
1.128 chan_sip.c, 1.772, 1.773 chan_skinny.c, 1.84,
1.85 chan_zap.c, 1.467, 1.468
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list