[Spce-user] Rate Call

Andrés Ruiz aruizmorillas at gmail.com
Sun Jan 18 08:17:11 EST 2015


Hello list,

I am doing some test with billing fees.

Test :

For no stablishment fee. Just 2.5 cents/minute:

init rate: 0,041
init interval: 1
follow rate: 0,041
follow interval 1

Result is OK. in 1 minute the rate is 2.5cent.

But if I set stablishment fee, for example to 15 cent, and the "follow 
interval" : 60 , for billing for complete minute, the result is wrong.

Test:

init rate: 15
init interval: 1
follow rate: 2.5
follow interval 60

Result for 12.460 second's call, is  165.00 cent, in this call rate 
should be 15 + 2.5 ? or only 15 because the call is minus than 60?
Result for 60 is 165.00 cent
Result for 99 second's call is 315.00cent. Why?


Note: the call is "local", between subscribers.

Mysql entry ;

  call_type: call
*call_status: ok**
**                           call_code: 200*
                            init_time: 1421586440.370
                           start_time: 1421586449.310
*duration: 60.240*
                              call_id: 275198741 at 192.168.4.57
                  source_carrier_cost: 0.00
*source_reseller_cost: 165.00**
**                source_customer_cost: 165.00*
             source_carrier_free_time: 0
            source_reseller_free_time: 0
            source_customer_free_time: 0
        source_carrier_billing_fee_id: NULL
       source_reseller_billing_fee_id: 5
       source_customer_billing_fee_id: 5
       source_carrier_billing_zone_id: NULL
      source_reseller_billing_zone_id: 8
      source_customer_billing_zone_id: 8
             destination_carrier_cost: 0.00
            destination_reseller_cost: 0.00
            destination_customer_cost: 0.00
        destination_carrier_free_time: 0
       destination_reseller_free_time: 0
       destination_customer_free_time: 0
   destination_carrier_billing_fee_id: NULL
  destination_reseller_billing_fee_id: NULL
  destination_customer_billing_fee_id: NULL
  destination_carrier_billing_zone_id: NULL
destination_reseller_billing_zone_id: NULL
destination_customer_billing_zone_id: NULL
                  frag_carrier_onpeak: NULL
                 frag_reseller_onpeak: NULL
                 frag_customer_onpeak: NULL
                        is_fragmented: NULL
                                split: 0
                             rated_at: 2015-01-18 14:08:41
*rating_status: ok*
                          exported_at: NULL
                        export_status: unexported

Am I doing something wrong?

Thanks in advance!!!

Great NGCP!!!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150118/82f3e927/attachment.html>


More information about the Spce-user mailing list