Don't post 2 CDR's when the outgoing spool call fails
authorMartin Pycko <martinp@digium.com>
Thu, 18 Sep 2003 21:06:29 +0000 (21:06 +0000)
committerMartin Pycko <martinp@digium.com>
Thu, 18 Sep 2003 21:06:29 +0000 (21:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1527 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 6d704d7..6b90388 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -1558,7 +1558,6 @@ struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int
                        /* If the cause wasn't handled properly */
                        if (ast_cdr_disposition(chan->cdr,chan->hangupcause))
                                ast_cdr_failed(chan->cdr);
-                       ast_cdr_reset(chan->cdr,1);
                } else 
                        ast_log(LOG_WARNING, "Unable to create Call Detail Record\n");
                ast_hangup(chan);