From: Russell Bryant Date: Tue, 5 Apr 2005 05:33:13 +0000 (+0000) Subject: fix accountcode (bug #3951) X-Git-Tag: 1.0.11.1~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a14b7c0717ae0da2a306f83989bc510cc514b98;p=thirdparty%2Fasterisk.git fix accountcode (bug #3951) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5391 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/CHANGES b/CHANGES index 4fcd611336..6bfddef57a 100755 --- a/CHANGES +++ b/CHANGES @@ -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. diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 102c28b146..18aef12627 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -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);