For example here http://www.perl.com/doc/FMTEYEWTK/IPC/inet.html
TCP client in Perl, command line parameters are ICP IP address and port 1752 (SMDR)
Very detailed description of SMDR format, there are multiple formats available, you just need to implement one, which is currently configured...