<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
Thanks for your support.<br>
<br>
I saw this document
<a class="moz-txt-link-freetext" href="http://download.ag-projects.com/CDRTool/doc/RATING.txt">http://download.ag-projects.com/CDRTool/doc/RATING.txt</a><br>
About Pricing formula, I don't understand.<br>
<br>
In billing_customer, increment and min_duration set 0.<br>
In global.inc, <br>
"priceDenominator" => 100, <br>
"priceDecimalDigits" => 2, <br>
"durationPeriodRated" => 60, <br>
"trafficSizeRated" => 1024, <br>
"reportMissingRates" => 0, <br>
"rate_longer_than" => 0, <br>
"MaxSessionTime" => 36000 <br>
<br>
In billing_rates, durationRate set 100.<br>
<br>
It's a Pricing formula.<br>
<pre><big> 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</big>
</pre>
<big></big><br>
durationForRating = ?? What is durationForRating?? <br>
minimumDurationCharged = 0<br>
connectCost = 0 <br>
How much is price??<br>
<br>
I don't understand to calculate this price.<br>
Can you give me a detail explanation?? <br>
Thanks<br>
<br>
Nick <br>
<pre>
</pre>
<br>
<br>
<br>
On 2011年11月21日 21:34, Adrian Georgescu wrote:
<blockquote
cite="mid:6B3C4B1D-D71F-4D7E-895F-6704242D6A5B@ag-projects.com"
type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://download.ag-projects.com/CDRTool/doc/PREPAID.txt">http://download.ag-projects.com/CDRTool/doc/PREPAID.txt</a>
On Nov 21, 2011, at 8:38 AM, Nick wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>