Re: freeradius accounting of cdr and quotes for string attributes

2013-02-06 Thread Matthew Newton
On Tue, Feb 05, 2013 at 05:18:13PM +, Kelly Roestel wrote: If you look at the detailed format, these string attributes are enclosed. But there seems to be no option in linelog module. linelog { ... format = \%{Client-IP-Address}\,\%{Calling-Station-Id}\,\%{User-Name}\ ... }

Re: freeradius accounting of cdr and quotes for string attributes

2013-02-06 Thread Kelly Roestel
Matthew, Yes that works. However, if the attribute is empty there will still be quotes in the csv file. Example. using format = \%{Client-IP-Address}\,\%{Calling-Station-Id}\,\%{User-Name}\ would yield, x.x.x.x,station-x,Kelly if %{Calling-Station-Id} was null this format would yield.

Re: freeradius accounting of cdr and quotes for string attributes

2013-02-06 Thread Alan DeKok
Kelly Roestel wrote: Yes that works. However, if the attribute is empty there will still be quotes in the csv file. If you want generic string manipulation code, use a real programming language. Or, write a csv module to do what you want. The linelog module is intended to write *lines

freeradius accounting of cdr and quotes for string attributes

2013-02-05 Thread Kelly Roestel
My question is this, I need to write CDR information out using the linelog module in csv format. The requirement is that all string attributes need to be enclosed in double quotes. How does one go about doing this? If you look at the detailed format, these string attributes are enclosed.