[Freeswitch-users] use of multiple templates and output files with mod_cdr_csv

Nyamul Hassan mnhassan at usa.net
Sat Aug 14 13:42:58 PDT 2010


I don't think you can load the same module twice.

I would suggest you take a look at mod_xml_cdr.  It dumps a whole lot of
information, which can be very useful for debugging as well.  You're already
using an external program to parse the CSV files.  Just need it to parse the
XML output, and you've got access to a whole lot more!

Regards
HASSAN



On Fri, Aug 13, 2010 at 14:27, François Delawarde <
fdelawarde at wirelessmundi.com> wrote:

> Thanks for the answers,
>
> > > Look at the accountcode channel variable:
> > > http://wiki.freeswitch.org/wiki/Mod_cdr_csv#accountcode
>
> I initially wanted to use the accountcode variable as an account code
> for billing and not for template selection, but I guess I can use it for
> template and create another variable (ex: realaccountcode) for the
> actual account code.
>
> Only thing would be that I'd be limited to two templates. Say I want to
> log to CSV and a couple of database tables with different fields, well
> I'll have to do it "manually".
>
>
> > what I would do is to log all the fields you need to Master.csv, and
> > then do selective imports of the fields you require depending on the
> > usage.
> > mysqlimport (LOAD DATA INFILE) allows that if you put a dummy variable
> > (@dummy) instead of a column name.
>
> Nice idea thanks, I could also have my own CDR script listening for
> hangup events, or to log everything to say an sqlite db and use a cron
> script to create other logs out of it, but the LOAD DATA INFILE method
> seems quite cool.
>
> Last question: Is there any way to load this module more than one time
> with different base directories to make it simpler?
>
> Thanks again,
> François.
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> 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/20100815/29e8bd12/attachment.html 


More information about the FreeSWITCH-users mailing list