[Freeswitch-users] mod_format_cdr and mod_json_cdr are writing too much data

Ken Rice krice at freeswitch.org
Mon Jan 18 18:07:16 MSK 2016


No its not possibly to limit how many fields you are getting. The xml and json CDRs are  dump of the full call stack at call completion… if you don’t want some of the data, eliminate it at CDR Processing time.

 

Speaking as someone that has had to handle 100s of millions (if not billions of CDRs) per month its not that big of a deal and the additional data there really comes in handy if you are trying to track down a problem after the fact

 

 

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Jurijs Ivolga
Sent: Monday, January 18, 2016 7:43 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] mod_format_cdr and mod_json_cdr are writing too much data

 

Hi,

Thank you for your answer!

Maybe you can provide more detailed info how I can decrease json cdr?

Currently I'm getting way too much data and almost all of them are not needed. I need just regular cdr stuff: to, from, billsec, call length, disposition, start, end, uuid, bleg_uuid.

Is it possible to limit json just to 10-15 fields, because currently I'm getting around 500 fields of data for each call?

With kind regards,

Jurijs

 

2016-01-18 15:34 GMT+02:00 Sergey Safarov <s.safarov at gmail.com <mailto:s.safarov at gmail.com> >:

You can split sip call to two sip calls with different dialplan context.

For one dialplan set variable process_cdr <https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables>  - instruction for this dialplan will not writed to cdr

 

 

 

On Mon, Jan 18, 2016 at 3:23 PM, Jurijs Ivolga <jurij.ivo at gmail.com <mailto:jurij.ivo at gmail.com> > wrote:

Hi,

It looks like mod_format_cdr & mod_json_cdr are saving too much data, I'm getting around 10-20K for each call. Is it possible somehow to limit what data we would like to save with this modules? Something similar to mod_cdr_csv? In mod_cdr_csv you can set in template what data to save.

Thank you!

With kind regards,

Jurijs


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160118/b3cae8bb/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list