Cdr_csv and cdr_sqlite don't create a single file per call. And no posting feature.
I need these features for real time billing (I though to use xml_cdr and log err files in case of unavailability of http server). Real time is important to calculate quota (postpaid) and credit (prepaid).




Il 06/02/12 14.56, Avi Marcus ha scritto:
You can't. xml_cdr is designed to show you everything, then you use your own thing to only save what you want.. or all of it.

If you only want a few channel variables, give cdr_csv a try.. or cdr_sqlite maybe. Both of those let you specify which channel variables to save. See: http://wiki.freeswitch.org/wiki/Cdr

-Avi


On Mon, Feb 6, 2012 at 3:50 PM, Carlo Dimaggio <jaasmailing@gmail.com> wrote:
Ok, thanks.
I think is better posting the xml_cdr.
How I can configure mod_xml_cdr to insert in the file only the variabiles I need? The file contains a lot of information that are not useful for the billing process.

Regards



Il 06/02/12 13.17, Avi Marcus ha scritto:
Without hacking the module to add that, cdr_csv and posting the xml_cdr are two options you can use.
http://wiki.freeswitch.org/wiki/Mod_cdr_csv lets you have different templates for different accountcodes to you can customize what it saves.

Or, have mod_xml_cdr post to a script that does different things depending on the accountcode.

You could patch mod_xml_cdr - the filename is chosen for normal saving in this line:
   freeswitch/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c:
   path = switch_mprintf("%s%s%s%s.cdr.xml", logdir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session));

-Avi


On Mon, Feb 6, 2012 at 2:09 PM, Carlo Dimaggio <jaasmailing@gmail.com> wrote:
Hi Guys,

I need a prefix in the filename created my mod_xml_cdr (ex: <accountcode or other var>-<uuid>.cdr.xml).
Is there any way to set this custom filename in the dialplan?

A reason could be performance in the billing procedure in order to process only that particular account and not the entire directory.


Best regards,

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

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

FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

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

FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

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

FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org