[OpenSIPS-Users] Fraud_detection!

morris edery morrisedery at gmail.com
Thu Aug 13 22:12:33 EST 2020


Guy , any help on the previous email below ?

On Wed, Aug 12, 2020 at 4:43 PM morris edery <morrisedery at gmail.com> wrote:

> Hello , i am having an issue with fraud detection in openesips 2.4.
> config below.
>
> fraud_detection table
>
>
> *rule id* *profile id* *prefix* *start hour* *end hour* *days of the week* *cpm
> warning* *cpm critical* *call duration warning* *call duration critical* *total
> calls warning* *total calls critical* *concurrent calls warning* *concurrent
> calls critical* *sequential calls warning* *sequential calls critical*
> 1 1 99 00:00 23:59 Sat,Sun 3 5 7200 13200 3 5 3 5 3 5
>
>
> dialed number over 5 times  9913057772211
>
> opensips.cfg
>
> loadmodule "drouting.so"
> loadmodule "dialog.so"
> loadmodule "fraud_detection.so"
>
>
> modparam("drouting", "db_partitions_url", "mysql://root:123456@localhost/opensips")
> modparam("drouting", "use_partitions", 1)
> modparam("fraud_detection", "db_url", "mysql://root:123456@localhost/opensips")
>
>
>  check_fraud("$fU", "$rU", "1");
> switch ($rc)
> {
> case 2:
> xlog("L_INFO","Fraud No matching rule found, call ok  $rc");
> break;
> case 1:
> xlog("L_INFO","Fraud Matching rule found, but call still ok");
> break;
> case -1:
> xlog("L_INFO","Fraud Possible fraud detected in warning level,
> please check events, but call will complete");
> break;
> case -2:
> xlog("L_INFO","Fraud Possible fraud detected in critical level,
> please check events, call will be dropped for security
> reasons");
> exit;
> case -3:
> xlog("L_INFO","Fraud Malfuntion in fraud detection module, please
> check, call not authorized");
> exit;
> default:
> xlog("L_INFO","Fraud Undefined return code");
> exit;
> }
>
>
> syslog result below
>
> faraud outpout ->   Fraud No matching rule found, call ok
>
>
> Any help will be appreciated
>
> Thx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200813/cfb9c093/attachment.html>


More information about the Users mailing list