]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
this change should fix issue # 10659 -- what I worry about is how many other bug...
authorSteve Murphy <murf@digium.com>
Tue, 11 Sep 2007 20:36:15 +0000 (20:36 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 11 Sep 2007 20:36:15 +0000 (20:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82261 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index d7ed53869727838dc3fc3fd0e1a3572fbacc6028..b588968601ef1b3f2d0ca93513da5ae83b352dcd 100644 (file)
@@ -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))