[Spce-user] cdr-exporter error?

Alex Lutay alutay at sipwise.com
Fri May 29 07:45:34 EDT 2015


Dear Serge,

I am not sure what I did yesterday when checking your email :-)
but proper line 72 of /usr/sbin/cdr-exporter is:

> sub callback {
>    [...skipped...]
>     my $reseller_line = join ",", map { defined $_ ? $quotes . $_ . $quotes : $quotes. $quotes } (@$res_row);

where $quotes is:
>     my $quotes = NGCP::CDR::Exporter::confval('QUOTES');

I suppose your warning is caused by missed QUOTES variable definition in 
cdr-exporter.conf. Can you please add to 
/etc/ngcp-config/templates/etc/ngcp-cdr-exporter/cdr-exporter.conf.tt2 :
> --- a/cdr-exporter/cdr-exporter.conf
> +++ b/cdr-exporter/cdr-exporter.conf
> @@ -13,6 +13,8 @@ PREFIX=[% cdrexport.filepreffix %]
>  VERSION=[% cdrexport.fileversion %]
>  MAX_ROWS_PER_FILE=5000
>
> +QUOTES="'"
> +
>  [% IF rateomat.enable == "no" %]
>  EXPORT_UNRATED=yes
>  [% ELSE %]

and build it using:
> ngcpcfg build /etc/ngcp-cdr-exporter/cdr-exporter.conf

I will release hotfix for mr3.8.1 if it help you.

Thank you, for reporting warning!

-- 
Alexander Lutay



More information about the Spce-user mailing list