[Spce-user] Rate Call
Daniel Grotti
dgrotti at sipwise.com
Sun Jan 18 08:30:42 EST 2015
Hi Andres,
This is because the follow interval is 60 sec, so whatever you speak more the 2 sec, you got the full charge for the following interval.
So in you case:
12.460 sec
15 x 1 sec (first init interval)
2.5x60 (second init int)
Tot 165
We don't care if spoke for 11.460sec in the second interval, we charge you for the whole interval anyway.
60sec
15x1
2.5x60
Tot 165
99sec
15x1 (first int)
2.5x60 (second int)
2.5x60 (third int - even if you spoke for 38sec here)
Tot 315
Regards,
Daniel
On 18 Jan 2015 14:17, Andrés Ruiz <aruizmorillas at gmail.com> wrote:
>
> 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!!!
>
>
More information about the Spce-user
mailing list