main/cdr.c: Correct Party A selection.

This appears to just have been a copy/paste error from 6258bbe7. Fix
suggested by Ross Beer in ASTERISK~29166.

Change-Id: I51e0de92042e53f37597c6f83a75621ef0d1ae37
This commit is contained in:
Sean Bright 2021-07-13 11:31:01 -04:00 committed by Friendly Automation
parent a41d192e99
commit fcebc4d24a
1 changed files with 1 additions and 1 deletions

View File

@ -1203,7 +1203,7 @@ static struct cdr_object_snapshot *cdr_object_pick_party_a(struct cdr_object_sna
/* Try the Party A flag */
if (ast_test_flag(left, AST_CDR_FLAG_PARTY_A) && !ast_test_flag(right, AST_CDR_FLAG_PARTY_A)) {
return left;
} else if (!ast_test_flag(right, AST_CDR_FLAG_PARTY_A) && ast_test_flag(right, AST_CDR_FLAG_PARTY_A)) {
} else if (!ast_test_flag(left, AST_CDR_FLAG_PARTY_A) && ast_test_flag(right, AST_CDR_FLAG_PARTY_A)) {
return right;
}