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: https://origsvn.digium.com/svn/asterisk/branches/1.4@107016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-03-10 14:33:02 +00:00
parent 57eaf9dd8f
commit 2bf8f9fca3
3 changed files with 6 additions and 25 deletions

View File

@@ -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;
}