mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
* many files: Update applications to add an exit status variable, make priority jumping optional, and use new args parsing macros
|
* 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.
|
* 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
|
* 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>
|
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) {
|
if (k == 3) {
|
||||||
int recheck = 0;
|
int recheck = 0;
|
||||||
|
struct ast_flags flags = { AST_CDR_FLAG_POSTED };
|
||||||
|
|
||||||
if (!ast_exists_extension(chan, ourcontext, exten, 1, chan->cid.cid_num)) {
|
if (!ast_exists_extension(chan, ourcontext, exten, 1, chan->cid.cid_num)) {
|
||||||
pbx_builtin_setvar_helper(chan, "INVALID_EXTEN", exten);
|
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))
|
if (!ast_strlen_zero(acctcode))
|
||||||
ast_copy_string(chan->accountcode, acctcode, sizeof(chan->accountcode));
|
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);
|
ast_explicit_goto(chan, ourcontext, exten, 1);
|
||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user