mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
ensure account code specified in mgcp.conf propagates to CDR (bug #3951)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -361,7 +361,7 @@ struct mgcp_endpoint {
|
|||||||
ast_mutex_t lock;
|
ast_mutex_t lock;
|
||||||
char name[80];
|
char name[80];
|
||||||
struct mgcp_subchannel *sub; /* pointer to our current connection, channel and stuff */
|
struct mgcp_subchannel *sub; /* pointer to our current connection, channel and stuff */
|
||||||
char accountcode[80];
|
char accountcode[20];
|
||||||
char exten[AST_MAX_EXTENSION]; /* Extention where to start */
|
char exten[AST_MAX_EXTENSION]; /* Extention where to start */
|
||||||
char context[AST_MAX_EXTENSION];
|
char context[AST_MAX_EXTENSION];
|
||||||
char language[MAX_LANGUAGE];
|
char language[MAX_LANGUAGE];
|
||||||
@@ -3701,6 +3701,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||||||
strncpy(gw->wcardep, v->value, sizeof(gw->wcardep) - 1);
|
strncpy(gw->wcardep, v->value, sizeof(gw->wcardep) - 1);
|
||||||
/*strncpy(e->name, "aaln/" "*", sizeof(e->name) - 1);*/
|
/*strncpy(e->name, "aaln/" "*", sizeof(e->name) - 1);*/
|
||||||
/* XXX Should we really check for uniqueness?? XXX */
|
/* XXX Should we really check for uniqueness?? XXX */
|
||||||
|
strncpy(e->accountcode, accountcode, sizeof(e->accountcode) - 1);
|
||||||
strncpy(e->context, context, sizeof(e->context) - 1);
|
strncpy(e->context, context, sizeof(e->context) - 1);
|
||||||
strncpy(e->cid_num, cid_num, sizeof(e->cid_num) - 1);
|
strncpy(e->cid_num, cid_num, sizeof(e->cid_num) - 1);
|
||||||
strncpy(e->cid_name, cid_name, sizeof(e->cid_name) - 1);
|
strncpy(e->cid_name, cid_name, sizeof(e->cid_name) - 1);
|
||||||
@@ -3796,6 +3797,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||||||
e->needaudit = 1;
|
e->needaudit = 1;
|
||||||
}
|
}
|
||||||
/* XXX Should we really check for uniqueness?? XXX */
|
/* XXX Should we really check for uniqueness?? XXX */
|
||||||
|
strncpy(e->accountcode, accountcode, sizeof(e->accountcode) - 1);
|
||||||
strncpy(e->context, context, sizeof(e->context) - 1);
|
strncpy(e->context, context, sizeof(e->context) - 1);
|
||||||
strncpy(e->cid_num, cid_num, sizeof(e->cid_num) - 1);
|
strncpy(e->cid_num, cid_num, sizeof(e->cid_num) - 1);
|
||||||
strncpy(e->cid_name, cid_name, sizeof(e->cid_name) - 1);
|
strncpy(e->cid_name, cid_name, sizeof(e->cid_name) - 1);
|
||||||
|
Reference in New Issue
Block a user