summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-11-07 04:10:41 +0000
committerRussell Bryant <russell@russellbryant.com>2005-11-07 04:10:41 +0000
commite8f2ad304a5e035a311f8671c1fcdc34e1c7e0ab (patch)
tree393eb712afe983fc00227bd687729bad621febcc /apps
parentbb3e125ed4b005bd4d0200d6e8eb7a5a70bd28e4 (diff)
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
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_disa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c
index 5038e907a..7cd9db8bb 100755
--- a/apps/app_disa.c
+++ b/apps/app_disa.c
@@ -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;