From: Martin Pycko Date: Thu, 18 Sep 2003 21:06:29 +0000 (+0000) Subject: Don't post 2 CDR's when the outgoing spool call fails X-Git-Tag: 0.7.0~485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dfc67d07889910fe1092716605a4fd10d25d71d;p=thirdparty%2Fasterisk.git Don't post 2 CDR's when the outgoing spool call fails git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1527 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 6d704d7424..6b9038873b 100755 --- 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);