<div dir="ltr">Also, can you let me know what this contract does?<div><br></div><div>is it possible to turn this off?</div><div><br></div><div>and also, why is rate-o-mat looking at december ones? Does it mean that it hasn't been doing its rating since Jan?</div>
<div><br></div><div>Please advise soonest.</div><div><br></div><div>Thanks</div><div class="gmail_extra"><br>Martin</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 2:44 PM, Martin Wong <span dir="ltr"><<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, it's getting stuck all over in the CDR. <div><br></div><div>This is a fairly utilized system and I don't want to upgrade the system if it's working.</div>
<div><br></div><div>Can you tell me how to get only rate-o-mat upgraded? </div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Martin</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 7:06 PM, Daniel Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
Ok, problem is that the contract_balance from dicember 2013 is missing<br>
and rate-o-mat is traying to rate a call from dicember.<br>
<br>
I suggest to:<br>
<br>
1. upgrade your rate-o-mat (at least v1.5.6)<br>
2. delete line 80 and 99 in contract_balance for that user<br>
3. restart rate-o-mat<br>
<br>
if you get the same error for other users (regardind calls from<br>
Dicember), just delete the lines in contract_balances relate to Feb and<br>
Jan and restart rate-o-mat.<br>
<br>
<br>
Daniel<br>
<div><div><br>
<br>
<br>
<br>
<br>
<br>
On 02/21/2014 08:57 AM, Martin Wong wrote:<br>
> I guess this means it's gone to zero somehow.<br>
><br>
> My question is ... how did it start off with a value there and how is it<br>
> zero ... if you can let me know what's happening cuz I have a few more<br>
> contracts which have zero value as well.<br>
><br>
> +----+-------------+--------------+-----------------------+-------------------+----------------------------+---------------------+---------------------+------------+<br>
> | id | contract_id | cash_balance | cash_balance_interval |<br>
> free_time_balance | free_time_balance_interval | start |<br>
> end | invoice_id |<br>
> +----+-------------+--------------+-----------------------+-------------------+----------------------------+---------------------+---------------------+------------+<br>
> | 4 | 5 | 0 | 69047.2996051473 |<br>
> 0 | 0 | 2013-07-01 00:00:00 | 2013-07-31<br>
> 23:59:59 | NULL |<br>
> | 9 | 5 | 0 | 180614.057300869 |<br>
> 0 | 0 | 2013-08-01 00:00:00 | 2013-08-31<br>
> 23:59:59 | NULL |<br>
> | 36 | 5 | 0 | 118444.60765611 |<br>
> 0 | 0 | 2013-09-01 00:00:00 | 2013-09-30<br>
> 23:59:59 | NULL |<br>
> | 49 | 5 | 0 | 110544.34936783 |<br>
> 0 | 0 | 2013-10-01 00:00:00 | 2013-10-31<br>
> 23:59:59 | NULL |<br>
> | 70 | 5 | 0 | 308513.299971317 |<br>
> 0 | 0 | 2013-11-01 00:00:00 | 2013-11-30<br>
> 23:59:59 | NULL |<br>
> | 80 | 5 | 0 | 0 |<br>
> 0 | 0 | 2014-01-01 00:00:00 | 2014-01-31<br>
> 23:59:59 | NULL |<br>
> | 99 | 5 | 0 | 0 |<br>
> 0 | 0 | 2014-02-01 00:00:00 | 2014-02-28<br>
> 23:59:59 | NULL |<br>
> +----+-------------+--------------+-----------------------+-------------------+----------------------------+---------------------+---------------------+------------+<br>
><br>
> On Fri, Feb 21, 2014 at 6:28 PM, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a><br>
</div></div><div><div>> <mailto:<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>> wrote:<br>
><br>
> Hi,<br>
> looks like contact_balance is missing for that account_id.<br>
> please check the following output:<br>
><br>
> mysql> select * from billing.contract_balances where contract_id="5";<br>
><br>
> where "5" is the source_account_id value in you CDR table.<br>
><br>
><br>
> Daniel<br>
><br>
><br>
><br>
> On 02/21/2014 06:14 AM, Martin Wong wrote:<br>
> > Hi guys,<br>
> ><br>
> > can someone guide me on this? Rate-o-mat died and is causing all<br>
> sort of<br>
> > issues on my end.<br>
> ><br>
> > The error says<br>
> ><br>
> > Error rating CDR batch: No contract balance for CDR 1211994 found<br>
> ><br>
> > Looking at 1211994, it's the following ... any idea? I've never<br>
> had this<br>
> > stop like this before.<br>
> ><br>
> ><br>
> ----------+---------------+-------+----------+---------------+-------------+---------------+<br>
> > | id | update_time | source_user_id<br>
> |<br>
> > source_provider_id | source_external_subscriber_id |<br>
> > source_external_contract_id | source_account_id | source_user<br>
> |<br>
> > source_domain | source_cli | source_clir | source_ip |<br>
> > destination_user_id | destination_provider_id |<br>
> > destination_external_subscriber_id |<br>
> destination_external_contract_id |<br>
> > destination_account_id | destination_user | destination_domain |<br>
> > destination_user_dialed | destination_user_in |<br>
> destination_domain_in |<br>
> > peer_auth_user | peer_auth_realm | call_type | call_status |<br>
> call_code |<br>
> > init_time | start_time | duration | call_id<br>
> > | source_carrier_cost | source_reseller_cost |<br>
> > source_customer_cost | source_carrier_free_time |<br>
> > source_reseller_free_time | source_customer_free_time |<br>
> > source_carrier_billing_fee_id | source_reseller_billing_fee_id |<br>
> > source_customer_billing_fee_id | source_carrier_billing_zone_id |<br>
> > source_reseller_billing_zone_id | source_customer_billing_zone_id |<br>
> > destination_carrier_cost | destination_reseller_cost |<br>
> > destination_customer_cost | destination_carrier_free_time |<br>
> > destination_reseller_free_time | destination_customer_free_time |<br>
> > destination_carrier_billing_fee_id |<br>
> destination_reseller_billing_fee_id<br>
> > | destination_customer_billing_fee_id |<br>
> > destination_carrier_billing_zone_id |<br>
> > destination_reseller_billing_zone_id |<br>
> > destination_customer_billing_zone_id | frag_carrier_onpeak |<br>
> > frag_reseller_onpeak | frag_customer_onpeak | is_fragmented | split |<br>
> > rated_at | rating_status | exported_at | export_status |<br>
> ><br>
> +---------+---------------------+--------------------------------------+--------------------+-------------------------------+-----------------------------+-------------------+---------------------+---------------+-------------+-------------+-----------------+---------------------+-------------------------+------------------------------------+----------------------------------+------------------------+------------------+--------------------+-------------------------+---------------------+-----------------------+----------------+-----------------+-----------+-------------+-----------+----------------+----------------+----------+----------------------------------------------+---------------------+----------------------+----------------------+--------------------------+---------------------------+---------------------------+-------------------------------+--------------------------------+--------------------------------+--------------------------------+-----------------------------<br>
-<br>
---<br>
> +<br>
> ---------------------------------+--------------------------+---------------------------+---------------------------+-------------------------------+--------------------------------+--------------------------------+------------------------------------+-------------------------------------+-------------------------------------+-------------------------------------+--------------------------------------+--------------------------------------+---------------------+----------------------+----------------------+---------------+-------+----------+---------------+-------------+---------------+<br>
> > | 1211994 | 2013-12-01 16:49:02 |<br>
> f1c1382d-57f9-4b86-bc6b-3c9c316be6ed |<br>
> > 1 | username1 | user1 |<br>
> > 5 | username1 | X.X.X.X | <a href="tel:61411571373" value="+61411571373" target="_blank">61411571373</a> | 0 |<br>
> > X.X.X.X | 0 | 3 |<br>
> > | |<br>
> > 0 | <a href="tel:61411787787" value="+61411787787" target="_blank">61411787787</a> | X.X.X.X | <a href="tel:0411787787" value="+61411787787" target="_blank">0411787787</a> |<br>
> > <a href="tel:61411787787" value="+61411787787" target="_blank">61411787787</a> | X.X.X.X | |<br>
> > | call | ok | 200 | 1385876899.128 |<br>
> > 1385876934.180 | 3.110 |<br>
> NDgwNjUzZWFjNWM1M2Q0MTU5NGJmYmZhMDE1ODE3M2E.<br>
> > | 0.00 | 0.00 | 0.00 |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> NULL |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> > 0.00 | 0.00 |<br>
> 0.00 |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> > NULL | NULL |<br>
> > NULL | NULL | NULL | 0 | NULL |<br>
> > unrated | NULL | unexported |<br>
> ><br>
> +---------+---------------------+--------------------------------------+--------------------+<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Spce-user mailing list<br>
</div></div>> > <a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a> <mailto:<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>><br>
<div>> > <a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
> ><br>
><br>
> _______________________________________________<br>
> Spce-user mailing list<br>
</div>> <a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a> <mailto:<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>><br>
> <a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
><br>
><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra"><br></div></div>