]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/cdr.c: Correct Party A selection.
authorSean Bright <sean.bright@gmail.com>
Tue, 13 Jul 2021 15:31:01 +0000 (11:31 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 16 Jul 2021 15:23:54 +0000 (10:23 -0500)
This appears to just have been a copy/paste error from 6258bbe7. Fix
suggested by Ross Beer in ASTERISK~29166.

Change-Id: I51e0de92042e53f37597c6f83a75621ef0d1ae37

main/cdr.c

index 93ba32fe3eedc074a5461b055684addf75f77945..8abce86c48f9113fc92316e6f6730f78e950a6cb 100644 (file)
@@ -1211,7 +1211,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;
        }