aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdr.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 20:49:21 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 20:49:21 +0000
commit298262c28534fca2a2d9461cf48ce7131655fe68 (patch)
treea8af7217b4492975b4f63cb62b8de041db6d629f /main/cdr.c
parent14ac0d9dfa7987f3f3e3594717fb11f443b9c879 (diff)
Merged revisions 82261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82261 | murf | 2007-09-11 14:36:15 -0600 (Tue, 11 Sep 2007) | 1 line 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/trunk@82262 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cdr.c')
-rw-r--r--main/cdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/cdr.c b/main/cdr.c
index 43b92aea9..16fa842ea 100644
--- a/main/cdr.c
+++ b/main/cdr.c
@@ -977,6 +977,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))