<html><body bgcolor="#FFFFFF"><div>Indeed, there is no way to load a module multiple times.</div><div><br></div><div>Modules register various api and app commands. Loading a module twice would register the same command twice, then how does fs know which module you mean?</div><div><br></div><div>I would agree with Hassan - mod_xml_cdr is far more versatile, as the web server can read the account variable and use that to determine what to do with the cdr.<br><br>Steve on iPhone</div><div><br>On 14 Aug 2010, at 21:42, Nyamul Hassan <<a href="mailto:mnhassan@usa.net">mnhassan@usa.net</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><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"><a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a></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"><a href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv#accountcode">http://wiki.freeswitch.org/wiki/Mod_cdr_csv#accountcode</a></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"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
</div></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>