Skip to content
Snippets Groups Projects
Commit 63b67950 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

ensure account code is not overwritten when none is supplied (bug #4743)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ddf5da66
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,9 @@ static int disa_exec(struct ast_channel *chan, void *data)
}
strncpy(chan->exten, exten, sizeof(chan->exten) - 1);
strncpy(chan->context, ourcontext, sizeof(chan->context) - 1);
strncpy(chan->accountcode, acctcode, sizeof(chan->accountcode) - 1);
if (!ast_strlen_zero(acctcode)) {
strncpy(chan->accountcode, acctcode, sizeof(chan->accountcode) - 1);
}
chan->priority = 0;
ast_cdr_reset(chan->cdr,AST_CDR_FLAG_POSTED);
LOCAL_USER_REMOVE(u);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment