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*/