diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-10 14:33:02 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-10 14:33:02 +0000 |
commit | 8a4ad70752e33426b94631733696a05786ce99f1 (patch) | |
tree | c4955643e7b14dd3ecf5f1e41c9f4a655d0306e8 /apps | |
parent | 242c5ef0b21ca32290cb4fea84fd3e72306e44b2 (diff) |
Move where unanswered CDRs are dropped to the CDR core, not everything uses app_dial.
(closes issue #11516)
Reported by: ys
Patches:
branch_1.4_cdr.diff uploaded by ys (license 281)
Tested by: anest, jcapp, dartvader
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@107016 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 2465bfc1d..2d5bf0938 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -765,25 +765,6 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l } } - if (peer && !ast_cdr_log_unanswered()) { - /* suppress the CDR's that didn't win */ - struct dial_localuser *o; - for (o = outgoing; o; o = o->next) { - struct ast_channel *c = o->chan; - if (c && c != peer && c->cdr) { - ast_set_flag(c->cdr, AST_CDR_FLAG_POST_DISABLED); - } - } - } else if (!peer && !ast_cdr_log_unanswered()) { - /* suppress the CDR's that didn't win */ - struct dial_localuser *o; - for (o = outgoing; o; o = o->next) { - struct ast_channel *c = o->chan; - if (c && c->cdr) { - ast_set_flag(c->cdr, AST_CDR_FLAG_POST_DISABLED); - } - } - } return peer; } |