magnussolution / magnusbilling7

MagnusBilling is a fast, secure, efficient, high availability, VOIP Billing.
https://www.magnusbilling.org
GNU Lesser General Public License v3.0
182 stars 106 forks source link

Test variant of loss prevention [Block calls if provider cost greater then client cost] #612

Closed Aminuxer closed 1 year ago

Aminuxer commented 1 year ago

try add LossPrevention

I fixed SQL-query for get providers costs in case then uplink prefixes don't exact match with isp prefixes

for example, tariff rates has prefix 4495 (price 2.56) but uplink prefixes has only 44 (price 2.9) - this call blocked due money loss

Global option like loss prevention if uplink cost greater client cost can be useful ?

Status

IN DEVELOPMENT

Migrations

NO

Description

[Block calls if provider cost greater then client cost]

Todos

Deploy Notes

Update script CalcAgi.php

Steps to Test or Reproduce

Impacted Areas in Application

List general components of the application that this PR will affect: