[Asterisk-cvs] asterisk/include/asterisk cdr.h, 1.24, 1.25 channel.h, 1.84, 1.85

markster at lists.digium.com markster at lists.digium.com
Wed May 25 13:14:00 CDT 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv382/include/asterisk

Modified Files:
	cdr.h channel.h 
Log Message:
Use defined AST_MAX_ACCOUNT_CODE (bug #4350)


Index: cdr.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/cdr.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cdr.h	4 May 2005 15:56:44 -0000	1.24
+++ cdr.h	25 May 2005 17:18:05 -0000	1.25
@@ -35,6 +35,7 @@
 #define AST_CDR_DOCUMENTATION			(3)
 
 #define AST_MAX_USER_FIELD			256
+#define AST_MAX_ACCOUNT_CODE			20
 
 struct ast_channel;
 AST_LIST_HEAD(varshead,ast_var_t);
@@ -72,7 +73,7 @@
 	/*! What flags to use */
 	int amaflags;				
 	/*! What account number to use */
-	char accountcode[20];			
+	char accountcode[AST_MAX_ACCOUNT_CODE];			
 	/*! flags */
 	unsigned int flags;				
 	/* Unique Channel Identifier */
@@ -258,7 +259,7 @@
 
 extern int ast_default_amaflags;
 
-extern char ast_default_accountcode[20];
+extern char ast_default_accountcode[AST_MAX_ACCOUNT_CODE];
 
 extern struct ast_cdr *ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr);
 

Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- channel.h	15 May 2005 04:48:30 -0000	1.84
+++ channel.h	25 May 2005 17:18:05 -0000	1.85
@@ -278,7 +278,7 @@
 	/*! Set BEFORE PBX is started to determine AMA flags */
 	int 	amaflags;			
 	/*! Account code for billing */
-	char 	accountcode[20];		
+	char 	accountcode[AST_MAX_ACCOUNT_CODE];		
 	/*! Call Detail Record */
 	struct ast_cdr *cdr;			
 	/*! Whether or not ADSI is detected on CPE */




More information about the svn-commits mailing list