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}\
...
}
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.
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
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.
4 matches
Mail list logo