From 41e7cc8154f86478f342423de8f6e28631a62111 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 25 May 2005 17:18:05 +0000 Subject: Use defined AST_MAX_ACCOUNT_CODE (bug #4350) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/cdr.h | 5 +++-- include/asterisk/channel.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index 67a5fb52b..1e0c9a7e7 100755 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -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 @@ struct ast_cdr { /*! 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_cdr_update(struct ast_channel *chan); 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); diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index e3dd749cb..5335d284b 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -278,7 +278,7 @@ struct ast_channel { /*! 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 */ -- cgit v1.2.3