In default settings cdr category there is a setting is to save b_leg to CDR, options are inbound, outbound and local. No matter what I'm enabling or disabling, all the b_leg's are saved to the database.