mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
12
main/cdr.c
12
main/cdr.c
@@ -713,10 +713,6 @@ void ast_cdr_busy(struct ast_cdr *cdr)
|
||||
{
|
||||
|
||||
for (; cdr; cdr = cdr->next) {
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_ANSLOCKED))
|
||||
continue;
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_DONT_TOUCH) && ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
|
||||
continue;
|
||||
if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {
|
||||
check_post(cdr);
|
||||
if (cdr->disposition < AST_CDR_BUSY)
|
||||
@@ -728,10 +724,6 @@ void ast_cdr_busy(struct ast_cdr *cdr)
|
||||
void ast_cdr_failed(struct ast_cdr *cdr)
|
||||
{
|
||||
for (; cdr; cdr = cdr->next) {
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_ANSLOCKED))
|
||||
continue;
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_DONT_TOUCH) && ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
|
||||
continue;
|
||||
check_post(cdr);
|
||||
if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {
|
||||
if (cdr->disposition < AST_CDR_FAILED)
|
||||
@@ -745,10 +737,6 @@ void ast_cdr_noanswer(struct ast_cdr *cdr)
|
||||
char *chan;
|
||||
|
||||
while (cdr) {
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_ANSLOCKED))
|
||||
continue;
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_DONT_TOUCH) && ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
|
||||
continue;
|
||||
chan = !ast_strlen_zero(cdr->channel) ? cdr->channel : "<unknown>";
|
||||
if (ast_test_flag(cdr, AST_CDR_FLAG_POSTED))
|
||||
ast_log(LOG_WARNING, "CDR on channel '%s' already posted\n", chan);
|
||||
|
Reference in New Issue
Block a user