fix accountcode (bug #3951)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-04-05 05:33:13 +00:00
parent e12e134ef9
commit 4a14b7c071
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
-- We no longer send a "to" tag on "100 Trying" messages, as it is inappropriate
to do so.
-- We now respond correctly to an invite for T.38 with a "488 Not acceptable here"
-- chan_mgcp
-- Fixed setting of accountcode
-- res_agi
-- A fix has been added to prevent calls from being hung up when more than one
call is executing an AGI script calling the GET DATA command.

View File

@@ -3559,6 +3559,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
strncpy(gw->wcardep, v->value, sizeof(gw->wcardep)-1);
/*strncpy(e->name, "aaln/" "*", sizeof(e->name) - 1);*/
/* 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->callerid, callerid, sizeof(e->callerid) - 1);
strncpy(e->language, language, sizeof(e->language) - 1);
@@ -3651,6 +3652,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
e->needaudit = 1;
}
/* 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->callerid, callerid, sizeof(e->callerid) - 1);
strncpy(e->language, language, sizeof(e->language) - 1);