[Home]

Summary:ASTERISK-09694: [patch] Converted cdr_manager to use custom cdr format
Reporter:Edoardo Serra - WeBRainstorm S.r.l. (webrainstorm)Labels:
Date Opened:2007-06-17 03:41:42Date Closed:2007-06-19 15:38:28
Priority:MinorRegression?No
Status:Closed/CompleteComponents:CDR/cdr_manager
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) cdr_manager_custom_fields.2.patch
Description:Here is my patch to use custom cdr format in cdr_manager.

You should add a [mappings] section to cdr_manager.conf and map custom cdr fields to label used in the generated event

The patch also contains an updated manager.conf.sample

Hope it helps

My 2 cents

--Ed
Comments:By: Edoardo Serra - WeBRainstorm S.r.l. (webrainstorm) 2007-06-17 03:53:30

I left a too small buffer size in the patch, just reduced for testing.

Maybe you want to change
#define CUSTOM_FIELDS_BUF_SIZE 124
to
#define CUSTOM_FIELDS_BUF_SIZE 1024

By: Edoardo Serra - WeBRainstorm S.r.l. (webrainstorm) 2007-06-17 05:33:23

Version 2:
- Increased buffer size as in the previous note
- Properly free dynamic string on module unload
- Changed function name (loadconfigurationfile -> load_config) as in other backends

By: Steve Murphy (murf) 2007-06-19 15:38:27

This patch applied to trunk via svn version  70122.

Many thanks to eserra for this contribution!