diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-25 17:18:05 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-25 17:18:05 +0000 |
commit | ea6f06e9fbb263a8081bad81cd6a6aefdc8fd276 (patch) | |
tree | fd84f27275e15d0f0980dfbea8db62e248576f79 /include | |
parent | 3c746d45b9512fd4efdabe7533b3137bbf5d6b8f (diff) |
Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5765 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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 */ |