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 [email protected]? I will include it in the next release.

--
Tijmen de Mes
AG Projects


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to