#include "asterisk/utils.h"
int ast_default_amaflags = AST_CDR_DOCUMENTATION;
-char ast_default_accountcode[20] = "";
+char ast_default_accountcode[AST_MAX_ACCOUNT_CODE] = "";
struct ast_cdr_beitem {
char name[20];
static int test_jitpct = 0;
#endif /* IAXTESTS */
-static char accountcode[20];
+static char accountcode[AST_MAX_ACCOUNT_CODE];
static int amaflags = 0;
static int delayreject = 0;
static int iax2_encryption = 0;
char dbsecret[80];
int authmethods;
int encmethods;
- char accountcode[20];
+ char accountcode[AST_MAX_ACCOUNT_CODE];
char inkeys[80]; /* Key(s) this user can use to authenticate to us */
char language[MAX_LANGUAGE];
int amaflags;
int calling_tns;
int calling_pres;
char dproot[AST_MAX_EXTENSION];
- char accountcode[20];
+ char accountcode[AST_MAX_ACCOUNT_CODE];
int amaflags;
struct iax2_dpcache *dpentries;
struct ast_variable *vars;
/*static int callprogress = 0;*/
-static char accountcode[20] = "";
+static char accountcode[AST_MAX_ACCOUNT_CODE] = "";
static char mailbox[AST_MAX_EXTENSION];
ast_mutex_t lock;
char name[80];
struct mgcp_subchannel *sub; /* pointer to our current connection, channel and stuff */
- char accountcode[20];
+ char accountcode[AST_MAX_ACCOUNT_CODE];
char exten[AST_MAX_EXTENSION]; /* Extention where to start */
char context[AST_MAX_EXTENSION];
char language[MAX_LANGUAGE];
char cid_name[256]; /* Caller*ID */
char via[256]; /* Via: header */
char fullcontact[128]; /* The Contact: that the UA registers with us */
- char accountcode[20]; /* Account code */
+ char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
char our_contact[256]; /* Our contact header */
char realm[MAXHOSTNAMELEN]; /* Authorization realm */
char nonce[256]; /* Authorization nonce */
char context[AST_MAX_EXTENSION]; /* Default context for incoming calls */
char cid_num[80]; /* Caller ID num */
char cid_name[80]; /* Caller ID name */
- char accountcode[20]; /* Account code */
+ char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
char language[MAX_LANGUAGE]; /* Default language for this user */
char musicclass[MAX_LANGUAGE]; /* Music on Hold class */
char useragent[256]; /* User agent in SIP request */
struct sip_auth *auth; /* Realm authentication list */
char context[AST_MAX_EXTENSION]; /* Default context for incoming calls */
char username[80]; /* Temporary username until registration */
- char accountcode[20]; /* Account code */
+ char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
int amaflags; /* AMA Flags (for billing) */
char tohost[MAXHOSTNAMELEN]; /* If not dynamic, IP address */
char regexten[AST_MAX_EXTENSION]; /* Extension to register (if regcontext is used) */
static int transfer = 0;
static int cancallforward = 0;
/* static int busycount = 3;*/
-static char accountcode[20] = "";
+static char accountcode[AST_MAX_ACCOUNT_CODE] = "";
static char mailbox[AST_MAX_EXTENSION];
static int amaflags = 0;
static int callnums = 1;
char name[80];
char label[42]; /* Label that shows next to the line buttons */
struct skinny_subchannel *sub; /* pointer to our current connection, channel and stuff */
- char accountcode[80];
+ char accountcode[AST_MAX_ACCOUNT_CODE];
char exten[AST_MAX_EXTENSION]; /* Extention where to start */
char context[AST_MAX_EXTENSION];
char language[MAX_LANGUAGE];
static int callprogress = 0;
-static char accountcode[20] = "";
+static char accountcode[AST_MAX_ACCOUNT_CODE] = "";
static char mailbox[AST_MAX_EXTENSION];
int destroy;
int ignoredtmf;
int inalarm;
- char accountcode[20]; /* Account code */
+ char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
int amaflags; /* AMA Flags */
char didtdd; /* flag to say its done it once */
struct tdd_state *tdd; /* TDD flag */
char context[80];
char secret[80];
char callerid[80];
- char accountcode[20];
+ char accountcode[AST_MAX_ACCOUNT_CODE];
int amaflags;
int host;
struct sockaddr_in addr;
#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);
/*! 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 */
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);
/*! 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 */