[OpenSIPS-Users] Quota - CDRTool Question
Tijmen de Mes
tijmen at ag-projects.com
Thu May 24 11:34:42 CEST 2012
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.
--
Tijmen de Mes
AG Projects
More information about the Users
mailing list