[OpenSIPS-Users] About prepaid question

Adrian Georgescu ag at ag-projects.com
Tue Nov 22 22:48:55 CET 2011


Is very difficult to help somebody see the forest because of the trees. That document is the most detailed explanation in existence about your question.

Please improve the document if is not good enough.

On Nov 22, 2011, at 4:30 AM, Nick wrote:

> 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
> _______________________________________________
> 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/7085cd10/attachment.htm>


More information about the Users mailing list