Merge "cdr/cdr_csv.c: Refactor, function to write content of csv file."