From fa79e11a910c51ee4212a25c98eb962784bc0f65 Mon Sep 17 00:00:00 2001 From: Matthew Nicholson Date: Fri, 9 Jul 2010 16:04:21 +0000 Subject: [PATCH] Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial (closes issue #17592) Reported by: jamicque Patches: G-flag-cdr-fix1.diff uploaded by mnicholson (license 96) Tested by: jamicque, mnicholson git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275027 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dial.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/app_dial.c b/apps/app_dial.c index 48a4d3b018..d1a2bf49cd 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1707,6 +1707,11 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags } if (chan && peer && ast_test_flag(&opts, OPT_GOTO) && !ast_strlen_zero(opt_args[OPT_ARG_GOTO])) { + /* chan and peer are going into the PBX, they both + * should probably get CDR records. */ + ast_clear_flag(chan->cdr, AST_CDR_FLAG_DIALED); + ast_clear_flag(peer->cdr, AST_CDR_FLAG_DIALED); + replace_macro_delimiter(opt_args[OPT_ARG_GOTO]); ast_parseable_goto(chan, opt_args[OPT_ARG_GOTO]); /* peer goes to the same context and extension as chan, so just copy info from chan*/ -- 2.47.2