[OpenSIPS-Users] About prepaid question
Nick
nick_chang at ezmobo.com
Tue Nov 22 04:30:00 CET 2011
Hi
Thanks for your support.
I saw this document http://download.ag-projects.com/CDRTool/doc/RATING.txt
About Pricing formula, I don't understand.
In billing_customer, increment and min_duration set 0.
In global.inc,
"priceDenominator" => 100,
"priceDecimalDigits" => 2,
"durationPeriodRated" => 60,
"trafficSizeRated" => 1024,
"reportMissingRates" => 0,
"rate_longer_than" => 0,
"MaxSessionTime" => 36000
In billing_rates, durationRate set 100.
It's a Pricing formula.
Pricing formula
---------------
if min_duration then
minimumDurationCharged = min_duration
else if minimumDurationCharged set in global inc
use minimumDurationCharged from global.inc
else
minimumDurationCharged = call duration
if increment then
durationForRating = round to the next increment
else
durationForRating = call duration
if durationForRating>= minimumDurationCharged then
Price = connectCost/priceDenominator+
durationRate*durationForRating/durationPeriodRated/priceDenominator
else
Price = 0
durationForRating = ?? What is durationForRating??
minimumDurationCharged = 0
connectCost = 0
How much is price??
I don't understand to calculate this price.
Can you give me a detail explanation??
Thanks
Nick
On 2011?11?21? 21:34, Adrian Georgescu wrote:
> http://download.ag-projects.com/CDRTool/doc/PREPAID.txt
>
>
> On Nov 21, 2011, at 8:38 AM, Nick wrote:
>
>> Hi
>>
>> I have a question for callcontrol and cdrtool.
>>
>> What command can i real-time found enough money to online user??
>>
>> If I have account 0911111111, It have 5 dollars.
>> Now, It call to 0922222222. How much money for 0911111111 a real-time???
>>
>> In MySQL. Only saw total money. When 0911111111 don't enough money, Can I notice to user??
>>
>> Thanks for your support.
>>
>> Nick
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111122/1c7cb8f2/attachment-0001.htm>
More information about the Users
mailing list