<div>I don't think you can load the same module twice.</div><div><br></div>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!<div>
<br></div><div>Regards</div><div>HASSAN</div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 14:27, François Delawarde <span dir="ltr"><<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks for the answers,<br>
<div class="im"><br>
> > Look at the accountcode channel variable:<br>
> > <a href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv#accountcode" target="_blank">http://wiki.freeswitch.org/wiki/Mod_cdr_csv#accountcode</a><br>
<br>
</div>I initially wanted to use the accountcode variable as an account code<br>
for billing and not for template selection, but I guess I can use it for<br>
template and create another variable (ex: realaccountcode) for the<br>
actual account code.<br>
<br>
Only thing would be that I'd be limited to two templates. Say I want to<br>
log to CSV and a couple of database tables with different fields, well<br>
I'll have to do it "manually".<br>
<div class="im"><br>
<br>
> what I would do is to log all the fields you need to Master.csv, and<br>
> then do selective imports of the fields you require depending on the<br>
> usage.<br>
> mysqlimport (LOAD DATA INFILE) allows that if you put a dummy variable<br>
> (@dummy) instead of a column name.<br>
<br>
</div>Nice idea thanks, I could also have my own CDR script listening for<br>
hangup events, or to log everything to say an sqlite db and use a cron<br>
script to create other logs out of it, but the LOAD DATA INFILE method<br>
seems quite cool.<br>
<br>
Last question: Is there any way to load this module more than one time<br>
with different base directories to make it simpler?<br>
<br>
Thanks again,<br>
<font color="#888888">François.<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>