diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-11 20:36:15 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-11 20:36:15 +0000 |
commit | 7e626fb707da0832c931fcc1a7ec9575cac03c73 (patch) | |
tree | 554ff8d8ed8e01a39294ae0703bec70c76ea9510 /main | |
parent | 818abf342bed5d3eb07baf806d80f6fcbbd5b082 (diff) |
this change should fix issue # 10659 -- what I worry about is how many other bug reports it may generate. Hopefully, we can please the/a majority. Hopefully. We shall see. Calls not marked ANSWERED and with only one channel name will not be posted. This should eliminate the double CDR's.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82261 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/cdr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/cdr.c b/main/cdr.c index d7ed53869..b58896860 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -978,6 +978,8 @@ static void post_cdr(struct ast_cdr *cdr) struct ast_cdr_beitem *i; for ( ; cdr ; cdr = cdr->next) { + if (cdr->disposition < AST_CDR_ANSWERED && (ast_strlen_zero(cdr->channel) || ast_strlen_zero(cdr->dstchannel))) + continue; /* people don't want to see unanswered single-channel events */ chan = S_OR(cdr->channel, "<unknown>"); check_post(cdr); if (ast_tvzero(cdr->end)) |