<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] freeswitch xml cdr and csv</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Not true... We parse on the FS server and handle over a million CDRs/day using a PHP parsing script no posting to the webserver...<BR>
<BR>
xml_cdr drops the xml file for us in log/xml_cdr where we have a php script similar to below that picks them up and trudges thru them at a rate of about 30 per second... <BR>
<BR>
&lt;? $files = glob(xml_cdr/dir/*.xml);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;foreach($files as $file){<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$results = parse($file);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$status = db_handler($results);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
?&gt;<BR>
<BR>
This handles rating of the calls and archival of the xml_cdrs for later incase of a DB failure or other administrative reasons we might need to go back to them... <BR>
<BR>
Our biggest bottle neck in all this is Disk IO which there are many ways to work around/with<BR>
<BR>
K<BR>
<BR>
<BR>
<BR>
<BR>
On 4/22/11 1:46 PM, &quot;Michael Collins&quot; &lt;<a href="msc@freeswitch.org">msc@freeswitch.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>XML CDR is quite robust. It will post to a web server and/or store on disk. We've got people doing hundreds of thousands of calls per day using XML CDR. However, they aren't doing the parsing on their FS server, they offload that to a separate server, which is the wise thing to do if you have lots of traffic.<BR>
<BR>
-MC<BR>
<BR>
On Fri, Apr 22, 2011 at 11:38 AM, vibha dear &lt;<a href="vibha_dear6@yahoo.co.in">vibha_dear6@yahoo.co.in</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>hi all..!<BR>
freeswitch generated cdr in both formats xml an multiline csv format, will there be any parsing overhead in XML parsing while fetching information for reporting and billing? how they will effect the system performance? which module is better to generate CDRs?<BR>
<BR>
thanks in advance..!!<BR>
kasturi  :)<BR>
<BR>
_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>