[OpenSIPS-Users] Quota - CDRTool Question

Tijmen de Mes tijmen at ag-projects.com
Thu May 24 11:22:15 CEST 2012


Hi Brian,
On 05/23/2012 06:02 PM, dotnetdub wrote:
> No quota has been exceeded
>
> So I am not php expert. Is this line a problem?
>
>              } else if ($this->daily_quota&&
> ($this->db->f('cost_daily')>= $this->db->f('quota') *
> $this->daily_quota/100)) {


If we look in detail at this line:
- $this->daily_quota is true (it exists),
- the daily cost field in the db is greater then 
quota_amount*(daily_quota/100)
- they are both true so it should match

So this line *should* work if it does not maybe you can add some debug 
and check the values of the db fields in between.

-- 
Tijmen de Mes
AG Projects




More information about the Users mailing list