diff options
author | Mark Spencer <markster@digium.com> | 2005-05-25 17:18:05 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-05-25 17:18:05 +0000 |
commit | 41e7cc8154f86478f342423de8f6e28631a62111 (patch) | |
tree | fd84f27275e15d0f0980dfbea8db62e248576f79 /include/asterisk | |
parent | 9644f1dcfe31c89fb5d1003e9932f93ca28bf6d8 (diff) |
Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/cdr.h | 5 | ||||
-rwxr-xr-x | include/asterisk/channel.h | 2 |
2 files changed, 4 insertions, 3 deletions
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 */ |