[Spce-user] rate-o-mat rates calls with 0 cost even though a rate is available
Rene Krenn
rkrenn at sipwise.com
Wed Nov 29 06:22:26 EST 2017
Hi,
did you check rate_at timestmap or tried to let it re-rate the cdr? (maybe it that result was created before you adjusted fees).
You can enable rate-o-mat debug in /etc/ngcp-config/templates/etc/default/ngcp-rate-o-mat.tt2 and then look at detailed output in /var/log/ngcp/rate-o-mat.log.
regards
-----Ursprüngliche Nachricht-----
Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von 4voice Service
Gesendet: Dienstag, 21. November 2017 19:49
An: spce-user at lists.sipwise.com
Betreff: [Spce-user] rate-o-mat rates calls with 0 cost even though a rate is available
Hi all,
I have an issue with rate-o-mat rating most calls with 0 cost even tough a billing fee is available:
situation:
subscriber X has a billing profile assigned
the billing profile contains a record
source: .
destination: ^43.+$
fee: 0.02
When the subscriber calls a record is added to the cdr table.
But after rate-o-matic rates the call it says rating status "rated", but the cost is still 0
+--------------+-------------------------+----------+----------------------+---------------+--------------------------------+---------------------------+-------------------------------------+
| source_user | destination_user_dialed | duration |
source_customer_cost | rating_status | source_customer_billing_fee_id | destination_customer_cost | destination_customer_billing_fee_id |
+--------------+-------------------------+----------+----------------------+---------------+--------------------------------+---------------------------+-------------------------------------+
| 4367xxxxxxx | 431xxxxxxxxxxx | 129.825 | 0.000000 |
ok | NULL |
0.000000 | NULL |
+--------------+-------------------------+----------+----------------------+---------------+--------------------------------+---------------------------+-------------------------------------+
1 row in set (0.00 sec)
Note that the billing_fee_ids also remain 0.
I've tried creating and assigning a new billing profile with just 1 catchall record. But after setting the status to 'unrated' it just gets rated again with 0 cost.
There are no errors in cdr.log and rate-o-mat.log (the latter shows the cdr has been rated, but no additional errors/info)
How do I troubleshoot/fix?
Regards,
Pieter
_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
https://lists.sipwise.com/listinfo/spce-user
More information about the Spce-user
mailing list