user correct arguments to ast_cdr_reset from my changes earlier today
authorRussell Bryant <russell@russellbryant.com>
Mon, 7 Nov 2005 04:10:41 +0000 (04:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 7 Nov 2005 04:10:41 +0000 (04:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6990 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
apps/app_disa.c

index d708c26..62e1b7a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
index 5038e90..7cd9db8 100755 (executable)
@@ -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;