CDR to external CDR application

Hi. I am trying to find a way of outputting CDR data to a standard CDR application. Most legacy PBX systems provide a serial port or a TCP port for an external server to connect to. This server logs the CDR data to it’s own database and allows you to run reports against the collected data.
Data is collected just after the call is complete.

I can’t see how this can be done with Asterisk as it stands unless we are expected to us the syslog out put which I could direct to a TCP port but would have to filter on the CDR data only.

Does anyone else know of a way to integrate to standard CDR applications via a TCP port?