]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 6d704d742408db5aae48aa50d57e0c0f91d2f3a1..6b9038873b02ac6d82b0cf67f1c5a557efcd8e2e 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);