I need to send the cdr data that goes to the Master.csv file to serial port ttyS0 as it is being written. Any ideas?
TIA
I need to send the cdr data that goes to the Master.csv file to serial port ttyS0 as it is being written. Any ideas?
TIA
There is a Manager API event that you can enable in the CDR.conf file so that you can trap all the CDR entries. Just be aware that it will generate a lot more events. you will have to chosoe carefully what events you are looking for. (I am still asking that Asterisk implements a better event subscribing model other than call, system, off…but that is another topic)
perhaps tail -f the file and send the output to wherever?
tail -f sounds like it could work. I guess I was thinking allong the lines of a symbolic link or in the cdr_custom.conf file pointing the output to the serial port. I need the output to the serial port to feed the information to a CRM program called HigherGear.
in that case I think that the Manager interface might be a better option. Manager is a Telnet connection that lets an application see/work with the inner workings of *…
You can set up a manager account so it is read-only (cannot change) and gets notification of all call actions… wouldnt be the same format as the CDR but might be less of a hack…
They need the information live or no more than a couple of minutes after the call is made to keep the CRM working correctly.
Can you constantly tail the data to the serial port? I got this warning when I did this:
[root@carousel asterisk]# tail -f > /dev/ttyS0
tail: warning: following standard input indefinitely is ineffective
What if I create the script
Then cron it every minute?
The cron seems to work. Do you think this is an ok way to go?
Slightly off topic but related: I can’t seem to get my cdr_custom.conf to run. I need to change the file from cdv to tab deliminated since the vendor doesn’t seem to be able to handle csv.
TIA
One other question is that my blank file has a line in it. How can I make the Master.csv be completely blank to remove the extra line?
hi,
i am not able to view Master.csv
On running ‘ls’ command in cdr-csv directory,it shows nothing.
What to do? How can i fetch CDR from Master.csv