[OpenSIPS-Users] Quota - CDRTool Question

dotnetdub dotnetdub at gmail.com
Thu May 24 11:48:37 CEST 2012


On 24 May 2012 10:34, Tijmen de Mes <tijmen at ag-projects.com> wrote:
> Hi Brian,
>
>
> On 05/24/2012 11:24 AM, dotnetdub wrote:
>>
>> Hi Tijmen,
>>
>> Been looking at this for Stephen.
>>
>> So I think I fixed some bugs!
>>
>> in rating.php on line 6006 it was never checking if the daily quota
>> was being exceeded.
>>
>> I've changed it to:
>>
>> $query=sprintf("select * from quota_usage where datasource = '%s' and
>> quota>  0 and (cost>  quota or cost_today>=
>> quota/$this->daily_quota)",$this->CDRS->cdr_source);
>>
>> Then on line 6027 currently is:
>>  else if ($this->daily_quota&&  ($this->db->f('cost_daily')>=
>>
>> $this->db->f('quota') * $this->daily_quota/100)) {
>>
>> the variable cost_daily is incorrect - it should be cost_today
>>
> Can you make a patch of this an mail it to support at ag-projects.com? I will
> include it in the next release.
>

Course - will send on now.

Thanks again for your help.


> --
> Tijmen de Mes
> AG Projects
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list