main/cdr: Fix crash/memory consumption in CDRs in multi-party bridge scenarios