[Spce-user] call forward billing

Andrew Pogrebennyk apogrebennyk at sipwise.com
Mon Jan 16 09:24:21 EST 2012


On 01/14/2012 07:44 PM, Skyler wrote:
>  I noticed that forwarded calls that leave the system are not being
> billed. I know that inbound is not billed, but if an inbound call is
> forwarded to another number that leaves the system should it not be billed?

As I see the CDR for call forwarding is created in version 2.3 but in
2.4 I got this error in /var/log/ngcp/rate-o-mat.log:

Jan 16 15:02:13 spce rate-o-mat[1322]: No contract balance for contract
id 2 starting earlier than '1326722529.330' found
Jan 16 15:02:13 spce rate-o-mat[1322]: Error rating CDR batch: No
contract balance for contract id 2 starting earlier than
'1326722529.330' found

Checking this, maybe you have the same problem?
And here is the CDR from the previous version:

mysql> select * from cdr where id >14\G
*************************** 1. row ***************************
                      id: 15
             update_time: 2012-01-16 14:04:43
          source_user_id: 467d4991-2867-4404-b843-136bcf43b98b
      source_provider_id: 1
             source_user: user2
           source_domain: my_domain
              source_cli: sip:43991002 at my_domain
             source_clir: 0
     destination_user_id: 0
 destination_provider_id: 5
        destination_user: 431309999
      destination_domain: fwd_target_domain
 destination_user_dialed: user2
     destination_user_in: 431309999
   destination_domain_in: my_domain
               call_type: cfu
             call_status: ok
               call_code: 200
              start_time: 2012-01-16 14:04:29
                duration: 1
                 call_id: tkhjmyxlltrfoos at darkstar
            carrier_cost: 0.00
           reseller_cost: 0.00
           customer_cost: 0.00
  carrier_billing_fee_id: 1
 reseller_billing_fee_id: NULL
 customer_billing_fee_id: 1
 carrier_billing_zone_id: 1
reseller_billing_zone_id: NULL
customer_billing_zone_id: 1
     frag_carrier_onpeak: NULL
    frag_reseller_onpeak: NULL
    frag_customer_onpeak: NULL
           is_fragmented: NULL
                rated_at: 2012-01-16 14:04:43
           rating_status: ok




More information about the Spce-user mailing list