mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user