diff options
author | lmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-12 19:08:03 +0000 |
---|---|---|
committer | lmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-12 19:08:03 +0000 |
commit | 7c8a7ab124ab41dd6199e013232b9dd64ff3a274 (patch) | |
tree | 1f32d002c8a68dfc1967ff87787397876467be79 /apps | |
parent | 249eaba298b855dbdd1be09ce4782a332a7f98fb (diff) |
Merge changes from issue 17592.
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.4.34-rc2@275765 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 48a4d3b01..d1a2bf49c 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*/ |