[Spce-user] Billing (rate-o-mat)

Andrew Pogrebennyk apogrebennyk at sipwise.com
Sun Oct 23 10:11:37 EDT 2011


Michael,

On 10/23/2011 03:39 AM, Michael Molina wrote:
> Use of unitialized value $DBI::err in concatenation (.) or string at /usr/sbin/rate-o-mat line 1271.
> rollback ineffective with AutoCommint enabled at /usr/sbin/rate-o-mat line 85.
> rollback ineffective with AutoCommint enabled at /usr/sbin/rate-o-mat line 86.
> Error reading CDR batch:

It is difficult to find the reason of error without seeing the CDR.
Would you mind sharing the earlier unrated CDR with a command below?

mysql -uroot accounting
select * from cdr where rating_status!='ok' order by start_time limit 1\G

Also do you have by chance the records with negative duration?
select * from cdr where duration<0\G

Is spce running on real hardware or VM?

> Use of uninitialized value $ENV{"RATEOMAT_SPLIT_PEAK_PARTS"} in int at /usr/sbin/rate-o-mat line 23.
> Missing billing DB user setting. at /usr/sbin/rate-o-mat line 36.
> root at debian:~# Use of uninitialized value $ENV{"RATEOMAT_SPLIT_PEAK_PARTS"} in int at /usr/sbin/rate-
> o-mat line 23.

This happens if you start it in command-line as /usr/sbin/rate-o-mat
and must not happen when you do /etc/init.d/ngcp-rate-o-mat start

If the latter is the case and you are still seeing this problem please
check that file /etc/default/ngcp-rate-o-mat exists.

Regards,
Andrew




More information about the Spce-user mailing list