Skip to content
Snippets Groups Projects
Commit e8f2ad30 authored by Russell Bryant's avatar Russell Bryant
Browse files

user correct arguments to ast_cdr_reset from my changes earlier today

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bb3e125e
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
* many files: Update applications to add an exit status variable, make priority jumping optional, and use new args parsing macros
* pbx.c cdr.c res/res_features.c apps/app_dial.c include/asterisk/cdr.h: Convert some built-in applications to use new args parsing macros. Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags.
* channels/chan_agent.c: Don't loop forever on an invalid options string
* apps/app_disa.c: Fix to use correct arguments to ast_cdr_reset
2005-11-05 Kevin P. Fleming <kpfleming@digium.com>
......
......@@ -338,6 +338,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
if (k == 3) {
int recheck = 0;
struct ast_flags flags = { AST_CDR_FLAG_POSTED };
if (!ast_exists_extension(chan, ourcontext, exten, 1, chan->cid.cid_num)) {
pbx_builtin_setvar_helper(chan, "INVALID_EXTEN", exten);
......@@ -357,7 +358,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
if (!ast_strlen_zero(acctcode))
ast_copy_string(chan->accountcode, acctcode, sizeof(chan->accountcode));
ast_cdr_reset(chan->cdr, AST_CDR_FLAG_POSTED);
ast_cdr_reset(chan->cdr, &flags);
ast_explicit_goto(chan, ourcontext, exten, 1);
LOCAL_USER_REMOVE(u);
return 0;
......
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