[asterisk-users] How to get TCP access to CDR Master.csv

asterisk-users at rogg.is asterisk-users at rogg.is
Wed Oct 24 18:45:48 CDT 2007


>#!/bin/bash
>while true; do
>     tail -f /var/log/asterisk/cdr-custom/Master.csv | nc -p 1024 -l
>done 

 

Thank you John, this bash script is exactly what I was looking for. Very simple, yet works.

 

As for doing this with insert into database and then polling for it... well I don‘t like polling. It‘s a good idea, but in the end, for this solution/in this case, the system reading the socket will in fact file the data (post processing) in a sql database for storing and querying.

 

tnx,

Baldvin

 

From: John Hass [mailto:asterisk.list at glccom.com] 
Sent: 24. október 2007 22:39
To: baldvin at rogg.is; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to get TCP access to CDR Master.csv

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071024/feffbb47/attachment.htm 


More information about the asterisk-users mailing list