[Freeswitch-users] freeswitch xml cdr and csv
Ken Rice
krice at freeswitch.org
Sat Apr 23 00:22:45 MSD 2011
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...
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...
<? $files = glob(xml_cdr/dir/*.xml);
foreach($files as $file){
$results = parse($file);
$status = db_handler($results);
}
?>
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...
Our biggest bottle neck in all this is Disk IO which there are many ways to
work around/with
K
On 4/22/11 1:46 PM, "Michael Collins" <msc at freeswitch.org> wrote:
> 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.
>
> -MC
>
> On Fri, Apr 22, 2011 at 11:38 AM, vibha dear <vibha_dear6 at yahoo.co.in> wrote:
>> hi all..!
>> 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?
>>
>> thanks in advance..!!
>> kasturi :)
>>
>> _______________________________________________
>> 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
>>
>
>
>
> _______________________________________________
> 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/20110422/97cbe7be/attachment-0001.html
More information about the FreeSWITCH-users
mailing list